diff options
| author | Po Lu | 2024-08-09 10:11:47 +0800 |
|---|---|---|
| committer | Po Lu | 2024-08-09 10:11:51 +0800 |
| commit | 16462b1a62d04a726f99f275b37fd3e6fd512202 (patch) | |
| tree | 2312592c67cb4d14e3172b6b4cac921d73f5411b /java/org | |
| parent | a1b8c2610a4d0cc99088c024e884495b26a17fa8 (diff) | |
| download | emacs-16462b1a62d04a726f99f275b37fd3e6fd512202.tar.gz emacs-16462b1a62d04a726f99f275b37fd3e6fd512202.zip | |
Register for more Intents actions on Android
* java/AndroidManifest.xml.in <EmacsOpenActivity>: Register
for SEND Intents with mailto URIs.
* java/org/gnu/emacs/EmacsOpenActivity.java (onCreate): Use
Intent constants rather than string literals.
Diffstat (limited to 'java/org')
| -rw-r--r-- | java/org/gnu/emacs/EmacsOpenActivity.java | 10 |
1 files changed, 5 insertions, 5 deletions
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 (); |