aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorPo Lu2024-08-09 10:12:26 +0800
committerPo Lu2024-08-09 10:12:26 +0800
commit3896f5034f4b8a82c0b4f8dd1b7c579c2e723fa9 (patch)
tree959fd610adcd3a7317c7b10fb4cb05a8ddd35753 /java
parent007ccba141ae93d05cff8e0c794a92f152657594 (diff)
parent16462b1a62d04a726f99f275b37fd3e6fd512202 (diff)
downloademacs-3896f5034f4b8a82c0b4f8dd1b7c579c2e723fa9.tar.gz
emacs-3896f5034f4b8a82c0b4f8dd1b7c579c2e723fa9.zip
Merge from savannah/emacs-30
16462b1a62d Register for more Intents actions on Android
Diffstat (limited to 'java')
-rw-r--r--java/AndroidManifest.xml.in1
-rw-r--r--java/org/gnu/emacs/EmacsOpenActivity.java10
2 files changed, 6 insertions, 5 deletions
diff --git a/java/AndroidManifest.xml.in b/java/AndroidManifest.xml.in
index f3bab2c1b76..df00e497f8f 100644
--- a/java/AndroidManifest.xml.in
+++ b/java/AndroidManifest.xml.in
@@ -270,6 +270,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. -->
270 </intent-filter> 270 </intent-filter>
271 271
272 <intent-filter> 272 <intent-filter>
273 <action android:name="android.intent.action.SEND"/>
273 <action android:name="android.intent.action.SENDTO"/> 274 <action android:name="android.intent.action.SENDTO"/>
274 <data android:scheme="mailto"/> 275 <data android:scheme="mailto"/>
275 <category android:name="android.intent.category.DEFAULT"/> 276 <category android:name="android.intent.category.DEFAULT"/>
diff --git a/java/org/gnu/emacs/EmacsOpenActivity.java b/java/org/gnu/emacs/EmacsOpenActivity.java
index 28e1e261821..366283168dd 100644
--- a/java/org/gnu/emacs/EmacsOpenActivity.java
+++ b/java/org/gnu/emacs/EmacsOpenActivity.java
@@ -422,11 +422,11 @@ public final class EmacsOpenActivity extends Activity
422 422
423 /* Now see if the action specified is supported by Emacs. */ 423 /* Now see if the action specified is supported by Emacs. */
424 424
425 if (action.equals ("android.intent.action.VIEW") 425 if (action.equals (Intent.ACTION_VIEW)
426 || action.equals ("android.intent.action.EDIT") 426 || action.equals (Intent.ACTION_EDIT)
427 || action.equals ("android.intent.action.PICK") 427 || action.equals (Intent.ACTION_PICK)
428 || action.equals ("android.intent.action.SEND") 428 || action.equals (Intent.ACTION_SEND)
429 || action.equals ("android.intent.action.SENDTO")) 429 || action.equals (Intent.ACTION_SENDTO))
430 { 430 {
431 /* Obtain the URI of the action. */ 431 /* Obtain the URI of the action. */
432 uri = intent.getData (); 432 uri = intent.getData ();