mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-09 08:21:30 -07:00
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.
This commit is contained in:
parent
a1b8c2610a
commit
16462b1a62
2 changed files with 6 additions and 5 deletions
|
|
@ -422,11 +422,11 @@ public final class EmacsOpenActivity extends Activity
|
|||
|
||||
/* 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 ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue