Merge "Fix the other app's scoped directory permissions are revoked" am: c7f7267e99
am: d7558462bb

Change-Id: I12dee90d1c0ad225ef506d5309cd92aba7f935dc
diff --git a/src/com/android/documentsui/ScopedAccessProvider.java b/src/com/android/documentsui/ScopedAccessProvider.java
index e98375e..787d21e 100644
--- a/src/com/android/documentsui/ScopedAccessProvider.java
+++ b/src/com/android/documentsui/ScopedAccessProvider.java
@@ -494,7 +494,7 @@
             context.grantUriPermission(toPackage, grantedUri, grantFlags);
             cr.takePersistableUriPermission(toPackage, grantedUri, persistFlags);
         } else {
-            context.revokeUriPermission(grantedUri, grantFlags);
+            context.revokeUriPermission(toPackage, grantedUri, grantFlags);
             // There's no need to release after revoking
         }
     }