From 70c4dcd50715ed33d14979366694c20c0f5ede9c Mon Sep 17 00:00:00 2001 From: Chaohui Wang Date: Wed, 25 Oct 2023 14:22:20 +0800 Subject: [PATCH] Migrate xml to SwitchPreferenceCompat Bug: 285231003 Test: manual - on affected pages Change-Id: I83283fcc4b241596a8f0cdf5299417bce2810d0c --- res/xml/accessibility_audio_adjustment.xml | 2 +- res/xml/accessibility_button_settings.xml | 2 +- res/xml/accessibility_color_and_motion.xml | 4 +- res/xml/accessibility_hearing_aids.xml | 2 +- res/xml/accessibility_settings.xml | 2 +- res/xml/accessibility_shortcuts_settings.xml | 2 +- res/xml/accessibility_system_controls.xml | 4 +- .../accessibility_text_reading_options.xml | 4 +- ...ssibility_vibration_intensity_settings.xml | 4 +- res/xml/accessibility_vibration_settings.xml | 14 +- res/xml/accounts_dashboard_settings.xml | 6 +- .../accounts_dashboard_settings_credman.xml | 6 +- .../accounts_personal_dashboard_settings.xml | 4 +- ...ts_personal_dashboard_settings_credman.xml | 4 +- .../accounts_private_dashboard_settings.xml | 4 +- ...nts_private_dashboard_settings_credman.xml | 4 +- res/xml/accounts_work_dashboard_settings.xml | 4 +- ...counts_work_dashboard_settings_credman.xml | 4 +- res/xml/all_tether_prefs.xml | 10 +- res/xml/apn_editor.xml | 2 +- res/xml/app_info_settings.xml | 2 +- res/xml/auto_rotate_settings.xml | 4 +- res/xml/battery_saver_settings.xml | 2 +- res/xml/billing_cycle.xml | 4 +- res/xml/button_navigation_settings.xml | 2 +- res/xml/configure_notification_settings.xml | 12 +- res/xml/connected_devices_advanced.xml | 2 +- res/xml/date_time_prefs.xml | 6 +- res/xml/development_settings.xml | 126 +++++++++--------- res/xml/display_settings.xml | 14 +- res/xml/double_tap_power_settings.xml | 2 +- res/xml/double_tap_screen_settings.xml | 2 +- res/xml/double_twist_gesture_settings.xml | 2 +- res/xml/dream_fragment_overview.xml | 4 +- res/xml/emergency_gesture_settings.xml | 2 +- res/xml/flash_notifications_settings.xml | 2 +- res/xml/gesture_navigation_settings.xml | 2 +- res/xml/keyboard_settings.xml | 2 +- res/xml/language_and_input.xml | 2 +- res/xml/manage_assist.xml | 6 +- res/xml/manage_domain_url_settings.xml | 2 +- res/xml/managed_profile_settings.xml | 2 +- res/xml/media_controls_settings.xml | 6 +- res/xml/more_security_privacy_settings.xml | 8 +- res/xml/nfc_and_payment_settings.xml | 2 +- res/xml/physical_keyboard_settings.xml | 2 +- res/xml/pick_up_gesture_settings.xml | 2 +- res/xml/polite_notifications_settings.xml | 4 +- res/xml/power_usage_summary.xml | 2 +- res/xml/privacy_controls_settings.xml | 2 +- res/xml/privacy_dashboard_settings.xml | 8 +- res/xml/private_space_settings.xml | 4 +- res/xml/reduce_bright_colors_settings.xml | 2 +- res/xml/screen_lock_settings.xml | 8 +- res/xml/screen_pinning_settings.xml | 2 +- res/xml/security_advanced_settings.xml | 4 +- res/xml/security_lockscreen_settings.xml | 14 +- .../security_settings_combined_biometric.xml | 2 +- ...ty_settings_combined_biometric_profile.xml | 2 +- res/xml/security_settings_face.xml | 6 +- res/xml/sim_lock_settings.xml | 5 +- res/xml/smart_battery_detail.xml | 4 +- res/xml/smart_forwarding_switch.xml | 9 +- res/xml/sound_settings.xml | 14 +- res/xml/sound_work_settings.xml | 2 +- res/xml/spatial_audio_settings.xml | 4 +- res/xml/swipe_to_notification_settings.xml | 2 +- res/xml/tap_screen_gesture_settings.xml | 2 +- res/xml/tether_prefs.xml | 4 +- res/xml/trackpad_gesture_settings.xml | 10 +- res/xml/trackpad_settings.xml | 6 +- res/xml/transcode_settings.xml | 10 +- res/xml/user_details_settings.xml | 4 +- res/xml/wifi_configure_settings.xml | 6 +- res/xml/wifi_network_details_fragment2.xml | 2 +- res/xml/wifi_tether_settings.xml | 4 +- res/xml/zen_mode_calls_settings.xml | 2 +- .../zen_mode_custom_rule_calls_settings.xml | 2 +- .../zen_mode_custom_rule_configuration.xml | 10 +- res/xml/zen_mode_schedule_rule_settings.xml | 2 +- res/xml/zen_mode_sound_vibration_settings.xml | 10 +- 81 files changed, 242 insertions(+), 244 deletions(-) diff --git a/res/xml/accessibility_audio_adjustment.xml b/res/xml/accessibility_audio_adjustment.xml index c38b4adecd2..92e6d8dc5af 100644 --- a/res/xml/accessibility_audio_adjustment.xml +++ b/res/xml/accessibility_audio_adjustment.xml @@ -21,7 +21,7 @@ android:persistent="false" android:title="@string/accessibility_audio_adjustment_title"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -57,28 +57,28 @@ android:key="tethering_options_group" android:title="@string/tethering_interface_options" settings:searchable="false"> - - - - - - - @@ -50,7 +50,7 @@ android:title="@string/ambient_camera_summary_battery_saver_on" settings:controller="com.android.settings.display.SmartAutoRotateBatterySaverController" /> - diff --git a/res/xml/battery_saver_settings.xml b/res/xml/battery_saver_settings.xml index 52b8b1acb93..74ef85604ba 100644 --- a/res/xml/battery_saver_settings.xml +++ b/res/xml/battery_saver_settings.xml @@ -34,7 +34,7 @@ settings:keywords="@string/keywords_battery_saver_schedule" settings:controller="com.android.settings.fuelgauge.batterysaver.BatterySaverSchedulePreferenceController"/> - - @@ -31,7 +31,7 @@ android:key="data_warning" android:title="@string/data_warning" /> - diff --git a/res/xml/button_navigation_settings.xml b/res/xml/button_navigation_settings.xml index 2459b602d1c..1de011c7089 100644 --- a/res/xml/button_navigation_settings.xml +++ b/res/xml/button_navigation_settings.xml @@ -30,7 +30,7 @@ settings:lottie_imageAssetsFolder="button_nav_menu" settings:lottie_rawRes="@raw/lottie_button_nav_menu"/> - - - - - - - - - @@ -72,11 +72,11 @@ android:key="time_format_preference_category" android:title="@string/time_format_category_title" settings:keywords="@string/keywords_time_format"> - - diff --git a/res/xml/development_settings.xml b/res/xml/development_settings.xml index 234733be642..b05342400ec 100644 --- a/res/xml/development_settings.xml +++ b/res/xml/development_settings.xml @@ -123,12 +123,12 @@ android:dialogTitle="@string/select_webview_provider_dialog_title" android:fragment="com.android.settings.webview.WebViewAppPicker" /> - - @@ -175,39 +175,39 @@ android:summary="@string/enable_adb_wireless_summary" settings:keywords="@string/keywords_adb_wireless" /> - - - - - - - @@ -217,7 +217,7 @@ android:title="@string/verify_apps_over_usb_title" android:summary="@string/verify_apps_over_usb_summary" /> - @@ -236,7 +236,7 @@ android:entries="@array/select_logpersist_titles" android:entryValues="@array/select_logpersist_values" /> - @@ -245,12 +245,12 @@ android:title="@string/feature_flags_dashboard_title" android:fragment="com.android.settings.development.featureflags.FeatureFlagsDashboard" /> - - @@ -268,22 +268,22 @@ settings:controller="com.android.settings.spa.development.compat.PlatformCompatPreferenceController" /> - - - - @@ -299,32 +299,32 @@ android:title="@string/debug_networking_category" android:order="400"> - - - - - - @@ -342,35 +342,35 @@ android:fragment="com.android.settings.connecteddevice.usb.UsbDefaultFragment" android:title="@string/usb_default_label"/> - - - - - - - @@ -388,7 +388,7 @@ android:entries="@array/bluetooth_map_versions" android:entryValues="@array/bluetooth_map_version_values" /> - @@ -439,17 +439,17 @@ android:entries="@array/bluetooth_max_connected_audio_devices" android:entryValues="@array/bluetooth_max_connected_audio_devices_values" /> - - - @@ -461,17 +461,17 @@ android:title="@string/debug_input_category" android:order="500"> - - - @@ -483,17 +483,17 @@ android:title="@string/debug_drawing_category" android:order="600"> - - - @@ -531,7 +531,7 @@ android:title="@string/display_cutout_emulation" settings:keywords="@string/display_cutout_emulation_keywords" /> - @@ -549,12 +549,12 @@ android:title="@string/debug_hw_drawing_category" android:order="700"> - - @@ -571,21 +571,21 @@ android:entries="@array/show_non_rect_clip_entries" android:entryValues="@array/show_non_rect_clip_values" /> - - - - @@ -621,7 +621,7 @@ android:title="@string/debug_monitoring_category" android:order="900"> - @@ -640,7 +640,7 @@ android:title="@string/debug_applications_category" android:order="1000"> - @@ -656,12 +656,12 @@ android:fragment="com.android.settings.applications.appops.BackgroundCheckSummary" android:title="@string/background_check_pref" /> - - @@ -672,7 +672,7 @@ android:entries="@array/cached_apps_freezer_entries" android:entryValues="@array/cached_apps_freezer_values" /> - @@ -692,32 +692,32 @@ android:title="@string/tare_title" > - - - - - - @@ -726,12 +726,12 @@ android:key="reset_shortcut_manager_throttling" android:title="@string/reset_shortcut_manager_throttling" /> - - @@ -793,12 +793,12 @@ - - - - - - - @@ -156,16 +156,16 @@ settings:keywords="@string/keywords_screensaver" settings:controller="com.android.settings.display.ScreenSaverPreferenceController"/> - - - diff --git a/res/xml/double_tap_power_settings.xml b/res/xml/double_tap_power_settings.xml index f4d7607c85e..fb5dd52b913 100644 --- a/res/xml/double_tap_power_settings.xml +++ b/res/xml/double_tap_power_settings.xml @@ -26,7 +26,7 @@ settings:searchable="false" app:lottie_rawRes="@drawable/quickly_open_camera"/> - - - - - - - - - - - - - diff --git a/res/xml/manage_domain_url_settings.xml b/res/xml/manage_domain_url_settings.xml index e820e78b85a..07194e46e45 100644 --- a/res/xml/manage_domain_url_settings.xml +++ b/res/xml/manage_domain_url_settings.xml @@ -25,7 +25,7 @@ android:key="web_action_category" android:title="@string/web_action_section_title" settings:controller="com.android.settings.applications.managedomainurls.WebActionCategoryController"> - - - - - - @@ -86,7 +86,7 @@ settings:searchable="false"/> - - - - - - - - - - - - - - - - - diff --git a/res/xml/screen_lock_settings.xml b/res/xml/screen_lock_settings.xml index 00dd7aeebe5..3f732b957dd 100644 --- a/res/xml/screen_lock_settings.xml +++ b/res/xml/screen_lock_settings.xml @@ -23,17 +23,17 @@ settings:searchable="false"> - - - @@ -48,7 +48,7 @@ android:entryValues="@array/lock_after_timeout_values" /> - diff --git a/res/xml/screen_pinning_settings.xml b/res/xml/screen_pinning_settings.xml index 7689043c681..2c4402da89e 100644 --- a/res/xml/screen_pinning_settings.xml +++ b/res/xml/screen_pinning_settings.xml @@ -23,7 +23,7 @@ android:title="@string/app_pinning_intro" settings:searchable="false"/> - diff --git a/res/xml/security_advanced_settings.xml b/res/xml/security_advanced_settings.xml index 4570dac0bcc..89834b4581f 100644 --- a/res/xml/security_advanced_settings.xml +++ b/res/xml/security_advanced_settings.xml @@ -106,7 +106,7 @@ settings:keywords="@string/keywords_app_pinning" settings:controller="com.android.settings.security.ScreenPinningPreferenceController" /> - - diff --git a/res/xml/security_lockscreen_settings.xml b/res/xml/security_lockscreen_settings.xml index 80e8fe69d2a..cb1ce4401d2 100644 --- a/res/xml/security_lockscreen_settings.xml +++ b/res/xml/security_lockscreen_settings.xml @@ -28,7 +28,7 @@ android:summary="@string/summary_placeholder" settings:keywords="@string/keywords_lock_screen_notif"/> - - - - - - - - - - - - + android:title="@string/sim_lock_settings"> - - - + xmlns:android="http://schemas.android.com/apk/res/android" + android:key="smart_forwarding_preference" + android:title="@string/smart_forwarding_title"> - - - - - - - @@ -212,7 +212,7 @@ android:order="-20"/> - diff --git a/res/xml/sound_work_settings.xml b/res/xml/sound_work_settings.xml index 8e48faca773..a7ab57a3ad1 100644 --- a/res/xml/sound_work_settings.xml +++ b/res/xml/sound_work_settings.xml @@ -19,7 +19,7 @@ android:title="@string/sound_work_settings"> - - - diff --git a/res/xml/swipe_to_notification_settings.xml b/res/xml/swipe_to_notification_settings.xml index 9d681a108d3..766a894ad00 100644 --- a/res/xml/swipe_to_notification_settings.xml +++ b/res/xml/swipe_to_notification_settings.xml @@ -26,7 +26,7 @@ settings:searchable="false" app:lottie_rawRes="@raw/lottie_swipe_fingerprint"/> - - - - - - - - - - - - - - - - - diff --git a/res/xml/user_details_settings.xml b/res/xml/user_details_settings.xml index 068039cbd04..8e15d14bf5a 100644 --- a/res/xml/user_details_settings.xml +++ b/res/xml/user_details_settings.xml @@ -21,11 +21,11 @@ - - diff --git a/res/xml/wifi_configure_settings.xml b/res/xml/wifi_configure_settings.xml index 2ab7b6a28fe..bf795d057d1 100644 --- a/res/xml/wifi_configure_settings.xml +++ b/res/xml/wifi_configure_settings.xml @@ -19,14 +19,14 @@ xmlns:settings="http://schemas.android.com/apk/res-auto" android:title="@string/wifi_configure_settings_preference_title"> - - - - diff --git a/res/xml/wifi_tether_settings.xml b/res/xml/wifi_tether_settings.xml index b8b810fd462..4924bf90820 100644 --- a/res/xml/wifi_tether_settings.xml +++ b/res/xml/wifi_tether_settings.xml @@ -44,12 +44,12 @@ android:persistent="false" android:title="@string/wifi_hotspot_password_title"/> - - diff --git a/res/xml/zen_mode_calls_settings.xml b/res/xml/zen_mode_calls_settings.xml index a0b39a9c525..447353eb65c 100644 --- a/res/xml/zen_mode_calls_settings.xml +++ b/res/xml/zen_mode_calls_settings.xml @@ -29,7 +29,7 @@ - diff --git a/res/xml/zen_mode_custom_rule_calls_settings.xml b/res/xml/zen_mode_custom_rule_calls_settings.xml index 4dca2adf36f..4bc3cb674d6 100644 --- a/res/xml/zen_mode_custom_rule_calls_settings.xml +++ b/res/xml/zen_mode_custom_rule_calls_settings.xml @@ -35,7 +35,7 @@ android:title="@string/zen_mode_starred_contacts_title"/> - diff --git a/res/xml/zen_mode_custom_rule_configuration.xml b/res/xml/zen_mode_custom_rule_configuration.xml index 664c09a2776..906d642af44 100644 --- a/res/xml/zen_mode_custom_rule_configuration.xml +++ b/res/xml/zen_mode_custom_rule_configuration.xml @@ -34,31 +34,31 @@ android:title="@string/zen_mode_messages" /> - - - - - diff --git a/res/xml/zen_mode_schedule_rule_settings.xml b/res/xml/zen_mode_schedule_rule_settings.xml index 874f5c90c5f..82483f3629f 100644 --- a/res/xml/zen_mode_schedule_rule_settings.xml +++ b/res/xml/zen_mode_schedule_rule_settings.xml @@ -42,7 +42,7 @@ - - - - - -