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

Commit b46adf6c authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "FakePermissionEnforcer: provide a revokeAll method"

parents 9bfb021c 9a46b013
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -47,6 +47,10 @@ public class FakePermissionEnforcer extends PermissionEnforcer {
        mGranted.remove(permission);
    }

    public void revokeAll() {
        mGranted.clear();
    }

    private boolean granted(String permission) {
        return mGranted.contains(permission);
    }