OSDN Git Service

Push delete notification when Bug reports are deleted.
authorBen Lin <linben@google.com>
Mon, 29 Aug 2016 21:07:06 +0000 (14:07 -0700)
committerBen Lin <linben@google.com>
Mon, 29 Aug 2016 21:08:32 +0000 (14:08 -0700)
Bug: 28768706
Change-Id: I6d3e91fe7d12be44918f97cef12c99d936401270

packages/Shell/src/com/android/shell/BugreportStorageProvider.java

index 8b07599..9fd80d3 100644 (file)
@@ -132,6 +132,7 @@ public class BugreportStorageProvider extends DocumentsProvider {
         if (!getFileForDocId(documentId).delete()) {
             throw new FileNotFoundException("Failed to delete: " + documentId);
         }
+        getContext().getContentResolver().notifyChange(getNotificationUri(), null);
     }
 
     // This is used by BugreportProgressService so that the notification uri shared by