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

Commit 5d742d7a authored by Felipe Leme's avatar Felipe Leme
Browse files

Removed redundant call to releasePersistableUriPermission()

Bug: 72055774

Test: manual verification
Test: atest CtsAppSecurityHostTestCases:ScopedDirectoryAccessTest#testResetGranted

Change-Id: I0f55c46830ad70516a6d2f9df6e55cd965142c79
parent d8c6a3cd
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
        }
    }