1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

Merge from savannah/emacs-30

16462b1a62 Register for more Intents actions on Android
This commit is contained in:
Po Lu 2024-08-09 10:12:26 +08:00
commit 3896f5034f
2 changed files with 6 additions and 5 deletions

View File

@ -270,6 +270,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. -->
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND"/>
<action android:name="android.intent.action.SENDTO"/>
<data android:scheme="mailto"/>
<category android:name="android.intent.category.DEFAULT"/>

View File

@ -422,11 +422,11 @@ private class EmacsClientThread extends Thread
/* Now see if the action specified is supported by Emacs. */
if (action.equals ("android.intent.action.VIEW")
|| action.equals ("android.intent.action.EDIT")
|| action.equals ("android.intent.action.PICK")
|| action.equals ("android.intent.action.SEND")
|| action.equals ("android.intent.action.SENDTO"))
if (action.equals (Intent.ACTION_VIEW)
|| action.equals (Intent.ACTION_EDIT)
|| action.equals (Intent.ACTION_PICK)
|| action.equals (Intent.ACTION_SEND)
|| action.equals (Intent.ACTION_SENDTO))
{
/* Obtain the URI of the action. */
uri = intent.getData ();