Add padlock to location for work profile when disabled by admin.
Change-Id: Iee930c9340436cc68ee432ad15ec182ccc6fb0a1
This commit is contained in:
@@ -2827,8 +2827,6 @@
|
||||
<string name="location_title">My Location</string>
|
||||
<!-- [CHAR LIMIT=30] Title for managed profile location switch -->
|
||||
<string name="managed_profile_location_switch_title">Location for work profile</string>
|
||||
<!-- [CHAR LIMIT=30] Text to show on managed profile location switch if MDM has locked down location access for managed profile-->
|
||||
<string name="managed_profile_location_switch_lockdown">Turned off by your company</string>
|
||||
<!-- [CHAR LIMIT=30] Location settings screen, setting preference screen box label for location mode -->
|
||||
<string name="location_mode_title">Mode</string>
|
||||
<!-- [CHAR LIMIT=30] Location settings screen, high accuracy location mode -->
|
||||
|
@@ -27,10 +27,10 @@
|
||||
android:summary="@string/location_mode_location_off_title" />
|
||||
|
||||
<!-- This preference category gets removed if there is no managed profile -->
|
||||
<SwitchPreference
|
||||
<com.android.settingslib.RestrictedSwitchPreference
|
||||
android:key="managed_profile_location_switch"
|
||||
android:title="@string/managed_profile_location_switch_title"
|
||||
android:summary="@string/managed_profile_location_switch_lockdown"
|
||||
settings:useAdminDisabledSummary="true"
|
||||
android:persistent="false"
|
||||
android:enabled="false"
|
||||
android:selectable="true" />
|
||||
|
Reference in New Issue
Block a user