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

Commit 65930f58 authored by Svet Ganov's avatar Svet Ganov
Browse files

Update grant result when a granted permission was requeried and denied.

Change-Id: I98fe8099144d51d852fae6ab604fa6e85b1e13f6
parent 30366743
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -219,11 +219,11 @@ public class GrantPermissionsActivity extends Activity
            if (granted) {
                groupState.mGroup.grantRuntimePermissions(doNotAskAgain);
                groupState.mState = GroupState.STATE_ALLOWED;
                updateGrantResults(groupState.mGroup);
            } else {
                groupState.mGroup.revokeRuntimePermissions(doNotAskAgain);
                groupState.mState = GroupState.STATE_DENIED;
            }
            updateGrantResults(groupState.mGroup);
        }
        if (!showNextPermissionGroupGrantRequest()) {
            setResultAndFinish();