From dd9b17b0830e5f4e1fee8f49ac12ca3da3d6f7a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Hern=C3=A1ndez?= Date: Tue, 10 Sep 2024 18:23:24 +0200 Subject: [PATCH] Remove "Do Not Disturb" from Sound summary in Settings top screen Bug: 361140177 Test: manual Flag: android.app.modes_ui Change-Id: I11f808319bbcc2645e593f70003611f70a3fc930 --- res/values/strings.xml | 4 +- res/xml/top_level_settings.xml | 5 ++- res/xml/top_level_settings_v2.xml | 5 ++- .../TopLevelSoundPreferenceController.java | 45 +++++++++++++++++++ 4 files changed, 54 insertions(+), 5 deletions(-) create mode 100644 src/com/android/settings/sound/TopLevelSoundPreferenceController.java diff --git a/res/values/strings.xml b/res/values/strings.xml index 3ec5904c749..3fb6688f38e 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -7829,7 +7829,9 @@ keyboard, haptics, vibrate, - Volume, vibration, Do Not Disturb + Volume and vibration + + Volume, vibration, Do Not Disturb Media volume diff --git a/res/xml/top_level_settings.xml b/res/xml/top_level_settings.xml index 1ec968a415c..44fe7fcc3d3 100644 --- a/res/xml/top_level_settings.xml +++ b/res/xml/top_level_settings.xml @@ -104,8 +104,9 @@ android:key="top_level_sound" android:order="-90" android:title="@string/sound_settings" - android:summary="@string/sound_dashboard_summary" - settings:highlightableMenuKey="@string/menu_key_sound"/> + android:summary="@string/sound_dashboard_summary_with_dnd" + settings:highlightableMenuKey="@string/menu_key_sound" + settings:controller="com.android.settings.sound.TopLevelSoundPreferenceController"/> + android:summary="@string/sound_dashboard_summary_with_dnd" + settings:highlightableMenuKey="@string/menu_key_sound" + settings:controller="com.android.settings.sound.TopLevelSoundPreferenceController"/>