Update Android port
* java/AndroidManifest.xml.in: Exclude non-files from opening in Emacs. * java/org/gnu/emacs/EmacsOpenActivity.java (onCreate): Avert crash should scheme be NULL.
This commit is contained in:
parent
862e5effbf
commit
db704687bb
2 changed files with 10 additions and 1 deletions
|
@ -110,7 +110,10 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. -->
|
|||
<action android:name="android.intent.action.EDIT"/>
|
||||
<action android:name="android.intent.action.PICK"/>
|
||||
<category android:name="android.intent.category.DEFAULT"/>
|
||||
<data android:mimeType="*/*"/>
|
||||
<!-- Don't offer to start Emacs for URLs that designate
|
||||
resources other than files. -->
|
||||
<data android:mimeType="*/*" android:scheme="file"/>
|
||||
<data android:mimeType="*/*" android:scheme="content"/>
|
||||
</intent-filter>
|
||||
|
||||
<!-- Facilitate opening org-protocol:// URLs as well, the same
|
||||
|
|
|
@ -438,6 +438,12 @@ private class EmacsClientThread extends Thread
|
|||
|
||||
scheme = uri.getScheme ();
|
||||
|
||||
/* It is possible for scheme to be NULL, under Android 2.3 at
|
||||
least. */
|
||||
|
||||
if (scheme == null)
|
||||
return;
|
||||
|
||||
/* If URL is a mailto URI, call `message-mailto' much the same
|
||||
way emacsclient-mail.desktop does. */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue