From 3ccbb0ffa51cfe9e24294c44eb14ffdd2a6fa0a4 Mon Sep 17 00:00:00 2001 From: Yuri Lin Date: Tue, 20 Aug 2024 16:58:37 -0400 Subject: [PATCH] Add modes to Settings homepage. Also moves the modes entrypoints out of the sub-pages it was previously in (notifications and sound settings). Bug: 353700470 Test: manual by opening the homepage Flag: android.app.modes_ui Change-Id: I53124bfed25c43fc2dabaf9c43ce0513bbfc7377 --- AndroidManifest.xml | 2 +- res/values/menu_keys.xml | 1 + res/xml/configure_notification_settings.xml | 9 --------- res/xml/modes_list_settings.xml | 3 ++- res/xml/sound_settings.xml | 8 -------- res/xml/top_level_settings.xml | 10 ++++++++++ res/xml/top_level_settings_v2.xml | 10 ++++++++++ .../modes/ZenModesLinkPreferenceController.java | 10 +++++++++- 8 files changed, 33 insertions(+), 20 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 7b79611ca65..a418dacf3bb 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1321,7 +1321,7 @@ + android:value="@string/menu_key_priority_modes" /> diff --git a/res/values/menu_keys.xml b/res/values/menu_keys.xml index 27e9639122a..36fdb818c6c 100755 --- a/res/values/menu_keys.xml +++ b/res/values/menu_keys.xml @@ -24,6 +24,7 @@ top_level_battery top_level_storage top_level_sound + top_level_priority_modes top_level_display top_level_wallpaper top_level_accessibility diff --git a/res/xml/configure_notification_settings.xml b/res/xml/configure_notification_settings.xml index 1e5b241ea82..b673a0839b0 100644 --- a/res/xml/configure_notification_settings.xml +++ b/res/xml/configure_notification_settings.xml @@ -135,15 +135,6 @@ settings:controller="com.android.settings.notification.zen.ZenModePreferenceController" /> - - + android:title="@string/zen_modes_list_title" + android:key="modes_list_settings"> diff --git a/res/xml/sound_settings.xml b/res/xml/sound_settings.xml index 393009ec920..15312c8b067 100644 --- a/res/xml/sound_settings.xml +++ b/res/xml/sound_settings.xml @@ -105,14 +105,6 @@ settings:keywords="@string/keywords_sounds_and_notifications_interruptions" settings:controller="com.android.settings.notification.zen.ZenModePreferenceController"/> - - + + + +