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

Commit 919d56f9 authored by Ian Pedowitz's avatar Ian Pedowitz Committed by Android (Google) Code Review
Browse files

Merge "Always set permission policy to fixed" into mnc-dev

parents 0d93cfb9 e8bec6ae
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -120,15 +120,15 @@ public class GrantPermissionsActivity extends OverlayTouchActivity
                    case DevicePolicyManager.PERMISSION_POLICY_AUTO_GRANT: {
                        if (!group.areRuntimePermissionsGranted()) {
                            group.grantRuntimePermissions(false);
                            group.setPolicyFixed();
                        }
                        group.setPolicyFixed();
                    } break;

                    case DevicePolicyManager.PERMISSION_POLICY_AUTO_DENY: {
                        if (!group.areRuntimePermissionsGranted()) {
                        if (group.areRuntimePermissionsGranted()) {
                            group.revokeRuntimePermissions(false);
                            group.setPolicyFixed();
                        }
                        group.setPolicyFixed();
                    } break;

                    default: {