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

Commit f2beec00 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Block location quick settings when disallow_config_location_mode is set."

parents 65e919ae 281000b4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -101,6 +101,9 @@ public class LocationTile extends QSTileImpl<BooleanState> {
        // state.visible = !(mKeyguard.isSecure() && mKeyguard.isShowing());
        state.value = locationEnabled;
        checkIfRestrictionEnforcedByAdminOnly(state, UserManager.DISALLOW_SHARE_LOCATION);
        if (state.disabledByPolicy == false) {
            checkIfRestrictionEnforcedByAdminOnly(state, UserManager.DISALLOW_CONFIG_LOCATION_MODE);
        }
        state.icon = mIcon;
        state.slash.isSlashed = !state.value;
        if (locationEnabled) {