summaryrefslogtreecommitdiff
path: root/java/org/gnu/emacs/EmacsService.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/org/gnu/emacs/EmacsService.java')
-rw-r--r--java/org/gnu/emacs/EmacsService.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/java/org/gnu/emacs/EmacsService.java b/java/org/gnu/emacs/EmacsService.java
index e2abd6c96ef..5186dec974a 100644
--- a/java/org/gnu/emacs/EmacsService.java
+++ b/java/org/gnu/emacs/EmacsService.java
@@ -1674,10 +1674,13 @@ public final class EmacsService extends Service
/* Delete the document identified by ID from the document tree
identified by URI. Return 0 upon success and -1 upon
- failure. */
+ failure.
+
+ NAME should be the name of the document being deleted, and is
+ used to invalidate the cache. */
public int
- deleteDocument (String uri, String id)
+ deleteDocument (String uri, String id, String name)
throws FileNotFoundException
{
Uri uriObject, tree;
@@ -1688,7 +1691,7 @@ public final class EmacsService extends Service
if (DocumentsContract.deleteDocument (resolver, uriObject))
{
if (storageThread != null)
- storageThread.postInvalidateCache (tree, id);
+ storageThread.postInvalidateCache (tree, id, name);
return 0;
}