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

Commit 281000b4 authored by yuemingw's avatar yuemingw Committed by Yueming Wang
Browse files

Block location quick settings when disallow_config_location_mode is set.

Bug: 67674888
Test: manual

Change-Id: I157e513ff556c99b1cf86a99c6f46023a044cef1
parent a7afd131
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) {