* java/org/gnu/emacs/EmacsOpenActivity.java (onCreate):
Don't check if URI is non-NULL, for instanceof checks this
also.
* java/org/gnu/emacs/EmacsSafThread.java (accessDocument1):
Don't check !writable twice.
* java/org/gnu/emacs/EmacsService.java (documentIdFromName):
Designate this function as public, since it is called
through JNI.
else
uri = intent.getParcelableExtra (Intent.EXTRA_STREAM);
- if (uri != null
- && (scheme = uri.getScheme ()) != null
+ if ((scheme = uri.getScheme ()) != null
&& scheme.equals ("content"))
{
tem1 = EmacsService.buildContentName (uri);
/* If so, don't check for FLAG_SUPPORTS_WRITE.
Check for FLAG_DIR_SUPPORTS_CREATE instead. */
- if (!writable)
- return 0;
-
index = cursor.getColumnIndex (Document.COLUMN_FLAGS);
if (index < 0)
return -3;
of OperationCanceledException, SecurityException,
FileNotFoundException, or UnsupportedOperationException. */
- private int
+ public int
documentIdFromName (String tree_uri, String name, String[] id_return)
{
/* Start the thread used to run SAF requests if it isn't already