Cosmetic changes to zen mode people & sound/vibration screens

On the people screen, have the footer show up all the time and provide a more relevant message (indicating that the chosen people override any app/etc settings) than the current setting.

On the sound/vibration screen, remove the sub-title since it's a bit confusing what exactly is being turned on or off.

Bug: 190180868
Bug: 215564123
Test: manual
Change-Id: I78d407af350a9f99d26d1e5082b752881bd3f186
This commit is contained in:
Yuri Lin
2022-01-26 13:01:26 -05:00
parent a91e2daea7
commit 0a7554acfa
4 changed files with 5 additions and 4 deletions

View File

@@ -9741,6 +9741,9 @@
setting page --> setting page -->
<string name="zen_mode_people_calls_messages_section_title" translatable="false">Who can reach you</string> <string name="zen_mode_people_calls_messages_section_title" translatable="false">Who can reach you</string>
<!-- [CHAR LIMIT=NONE] Zen mode settings: people screen footer -->
<string name="zen_mode_people_footer" translatable="false">Even if messaging or calling apps can\u0027t notify you, people you choose here can still reach you through those apps</string>
<!-- [CHAR LIMIT=40] Zen mode settings: Allow calls toggle title --> <!-- [CHAR LIMIT=40] Zen mode settings: Allow calls toggle title -->
<string name="zen_mode_calls_title">Calls</string> <string name="zen_mode_calls_title">Calls</string>
<!-- [CHAR LIMIT=20] Zen mode settings: Calls option --> <!-- [CHAR LIMIT=20] Zen mode settings: Calls option -->

View File

@@ -37,7 +37,6 @@
</PreferenceCategory> </PreferenceCategory>
<!-- Footer that shows if user is put into alarms only or total silence mode by an app -->
<com.android.settingslib.widget.FooterPreference/> <com.android.settingslib.widget.FooterPreference/>
</PreferenceScreen> </PreferenceScreen>

View File

@@ -20,7 +20,6 @@
android:title="@string/zen_category_exceptions" > android:title="@string/zen_category_exceptions" >
<PreferenceCategory <PreferenceCategory
android:title="@string/zen_mode_settings_category"
android:key="zen_mode_settings_category_sound_vibration"> android:key="zen_mode_settings_category_sound_vibration">
<!-- Alarms --> <!-- Alarms -->

View File

@@ -60,8 +60,8 @@ public class ZenModePeopleSettings extends ZenModeSettingsBase implements Indexa
"zen_mode_people_calls")); "zen_mode_people_calls"));
controllers.add(new ZenModeMessagesPreferenceController(context, lifecycle, controllers.add(new ZenModeMessagesPreferenceController(context, lifecycle,
"zen_mode_people_messages")); "zen_mode_people_messages"));
controllers.add(new ZenModeSettingsFooterPreferenceController(context, lifecycle, controllers.add(new ZenModeBehaviorFooterPreferenceController(context, lifecycle,
fragmentManager)); R.string.zen_mode_people_footer));
return controllers; return controllers;
} }