aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
Diffstat (limited to 'java')
-rw-r--r--java/org/gnu/emacs/EmacsService.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/java/org/gnu/emacs/EmacsService.java b/java/org/gnu/emacs/EmacsService.java
index a3dea368272..036bc9cf098 100644
--- a/java/org/gnu/emacs/EmacsService.java
+++ b/java/org/gnu/emacs/EmacsService.java
@@ -1294,8 +1294,12 @@ public final class EmacsService extends Service
1294 if (DocumentsContract.isTreeUri (uri) 1294 if (DocumentsContract.isTreeUri (uri)
1295 && uri.getAuthority ().equals (providerName) 1295 && uri.getAuthority ().equals (providerName)
1296 && permission.isReadPermission ()) 1296 && permission.isReadPermission ())
1297 /* Make sure the tree document ID is encoded. */ 1297 /* Make sure the tree document ID is encoded. Refrain from
1298 treeList.add (Uri.encode (DocumentsContract.getTreeDocumentId (uri))); 1298 encoding characters such as +:&?#, since they don't
1299 conflict with file name separators or other special
1300 characters. */
1301 treeList.add (Uri.encode (DocumentsContract.getTreeDocumentId (uri),
1302 " +:&?#"));
1299 } 1303 }
1300 1304
1301 return treeList.toArray (new String[0]); 1305 return treeList.toArray (new String[0]);