Skip to content

Commit

Permalink
migrate "System -> Date & time" toggles to SwitchPreferenceCompat
Browse files Browse the repository at this point in the history
  • Loading branch information
muhomorr authored and thestinger committed Mar 7, 2024
1 parent f5bd45a commit 0539005
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions res/xml/date_time_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
settings:controller="com.android.settings.datetime.LocationProviderStatusPreferenceController"/>

<!-- This preference gets removed if location-based time zone detection is not supported -->
<SwitchPreference
<SwitchPreferenceCompat
android:key="location_time_zone_detection"
android:title="@string/location_time_zone_detection_toggle_title"
settings:controller="com.android.settings.datetime.LocationTimeZoneDetectionPreferenceController"/>
Expand All @@ -77,12 +77,12 @@
android:key="time_format_preference_category"
android:title="@string/time_format_category_title"
settings:keywords="@string/keywords_time_format">
<SwitchPreference
<SwitchPreferenceCompat
android:key="auto_24hour"
android:title="@string/date_time_24hour_auto"
settings:controller="com.android.settings.datetime.AutoTimeFormatPreferenceController" />

<SwitchPreference
<SwitchPreferenceCompat
android:key="24 hour"
android:title="@string/date_time_24hour"
settings:controller="com.android.settings.datetime.TimeFormatPreferenceController" />
Expand Down

0 comments on commit 0539005

Please sign in to comment.