Adds silence toggle to notification settings.

This change modifies the UI that appears when a notification is
long-pressed to include a third option when the notification could
potentially buzz or make sound, allowing the user to promote or demote
the notification's channel such that it will not alert (or will start
alerting) for future notifications.

Test: atest SystemUITests
Bug: 116622974
Change-Id: Ia070d0ef1b181b4de8b3d49ace9ff2a65fed8deb
This commit is contained in:
Gus Prevas
2018-10-31 16:11:04 -04:00
parent a32264906d
commit 9abc50646f
15 changed files with 590 additions and 117 deletions

View File

@@ -1540,6 +1540,12 @@
<!-- Notification inline controls: Shown when a channel's notifications are minimized -->
<string name="notification_channel_minimized">These notifications will be minimized</string>
<!-- Notification inline controls: Shown when a channel's notifications are silenced [CHAR_LIMIT=100] -->
<string name="notification_channel_silenced">These notifications will be shown silently</string>
<!-- Notification inline controls: Shown when a channel's notifications are set to alert [CHAR_LIMIT=100] -->
<string name="notification_channel_unsilenced">These notifications will alert you</string>
<!-- Notification Inline controls: continue receiving notifications prompt, channel level -->
<string name="inline_blocking_helper">You usually dismiss these notifications.
\nKeep showing them?</string>
@@ -1556,6 +1562,12 @@
<!-- Notification inline controls: minimize notifications button -->
<string name="inline_minimize_button">Minimize</string>
<!-- Notification inline controls: show notifications silently button [CHAR_LIMIT=25] -->
<string name="inline_silent_button_silent">Show silently</string>
<!-- Notification inline controls: show and alert button [CHAR_LIMIT=25] -->
<string name="inline_silent_button_alert">Show and alert</string>
<!-- Notification Inline controls: continue receiving notifications prompt, app level -->
<string name="inline_keep_showing_app">Keep showing notifications from this app?</string>