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

Commit 7a8aaf77 authored by Felipe Leme's avatar Felipe Leme Committed by android-build-merger
Browse files

Merge "Removed redundant call to releasePersistableUriPermission()" into pi-dev

am: 52a5e114

Change-Id: Ia798080888078f8ce434663191eb64fdbc99ecb8
parents 6a6b83fd 52a5e114
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -193,7 +193,6 @@ public class ScopedAccessActivity extends Activity {
                    ft.commitAllowingStateLoss();

                    return true;

                });
    }

+1 −1
Original line number Diff line number Diff line
@@ -467,7 +467,7 @@ public class ScopedAccessProvider extends ContentProvider {
            cr.takePersistableUriPermission(toPackage, grantedUri, persistFlags);
        } else {
            context.revokeUriPermission(grantedUri, grantFlags);
            cr.releasePersistableUriPermission(toPackage, grantedUri, persistFlags);
            // There's no need to release after revoking
        }
    }