Remove restriction for "Use location..."
Remove restriction for "Use location to set time zone" toggle.
This setting should not be restricted. Using location is a personal
choice since it involves the use of the device's location.
Bug: 166579161
Test: manual testing with / without date/time restriction
Change-Id: I89973e1df5cad8b4c639c13478298f9b39f37b5f
diff --git a/res/xml/date_time_prefs.xml b/res/xml/date_time_prefs.xml
index 6fc0b25..47056df 100644
--- a/res/xml/date_time_prefs.xml
+++ b/res/xml/date_time_prefs.xml
@@ -53,11 +53,10 @@
settings:keywords="@string/keywords_time_zone"/>
<!-- This preference gets removed if location-based time zone detection is not supported -->
- <com.android.settingslib.RestrictedSwitchPreference
+ <SwitchPreference
android:key="location_time_zone_detection"
android:title="@string/location_time_zone_detection_toggle_title"
settings:controller="com.android.settings.datetime.LocationTimeZoneDetectionPreferenceController"
- settings:userRestriction="no_config_date_time"
/>
<PreferenceCategory