Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac5f9983 authored by Vairavan Srinivasan's avatar Vairavan Srinivasan Committed by Dianne Hackborn
Browse files

DO NOT MERGE: Cherry-pick 2ed52496 to JB.

This was contributed from AOSP, a fix to the management of URI write
permissions.  This is a very blatant bug, and with the new Intent ClipData
and other stuff we are making much more use of write permissions in JB,
so it is well worth taking.

Change-Id: I58c86119b4d5c13fefd090944bea139803df1a48
parent a7e3a1e0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -59,11 +59,11 @@ class UriPermission {
        if ((modeFlagsToClear&Intent.FLAG_GRANT_WRITE_URI_PERMISSION) != 0) {
            globalModeFlags &= ~Intent.FLAG_GRANT_WRITE_URI_PERMISSION;
            modeFlags &= ~Intent.FLAG_GRANT_WRITE_URI_PERMISSION;
            if (readOwners.size() > 0) {
            if (writeOwners.size() > 0) {
                for (UriPermissionOwner r : writeOwners) {
                    r.removeWritePermission(this);
                }
                readOwners.clear();
                writeOwners.clear();
            }
        }
    }