Add padlock to location for work profile when disabled by admin.

Change-Id: Iee930c9340436cc68ee432ad15ec182ccc6fb0a1
This commit is contained in:
Sudheer Shanka
2016-01-25 23:34:20 +00:00
parent 20c9817713
commit 0d9ac3469b
3 changed files with 25 additions and 44 deletions

View File

@@ -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" />