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

Commit df36ed58 authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Handle bad group names when granting permissions

Test: atest PermissionsHostTests
Change-Id: I2c3d3bc4dd20f609f0c121599b3afdb326d489f1
Fixes: 73112321
parent 89480455
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -414,7 +414,7 @@ public class GrantPermissionsActivity extends OverlayTouchActivity
    @Override
    public void onPermissionGrantResult(String name, boolean granted, boolean doNotAskAgain) {
        GroupState groupState = mRequestGrantPermissionGroups.get(name);
        if (groupState.mGroup != null) {
        if (groupState != null && groupState.mGroup != null) {
            if (granted) {
                groupState.mGroup.grantRuntimePermissions(doNotAskAgain,
                        groupState.affectedPermissions);