diff options
author | John Spurlock <jspurlock@google.com> | 2015-05-07 17:45:43 -0400 |
---|---|---|
committer | John Spurlock <jspurlock@google.com> | 2015-05-08 13:57:22 -0400 |
commit | 08531a81cb34dc45f0da4ca88e8530169831c7d2 (patch) | |
tree | 4e31fa2801007cc0faa6a45ab76f9a5ab8a94857 /res | |
parent | c0df6623a0eb0ebbdb965111269b96d9f4a4b976 (diff) | |
download | packages_apps_Settings-08531a81cb34dc45f0da4ca88e8530169831c7d2.zip packages_apps_Settings-08531a81cb34dc45f0da4ca88e8530169831c7d2.tar.gz packages_apps_Settings-08531a81cb34dc45f0da4ca88e8530169831c7d2.tar.bz2 |
Settings: New DND access settings page.
- New advanced notification settings subpage for managing apps
that have requested the ability to manage notification policy.
- Create new "Advanced" section at the bottom of notification settings
for this and the existing Notification access settings page.
Bug: 18298798
Change-Id: Ib415e634980d37d6492799f67a6619700ee2a01c
Diffstat (limited to 'res')
-rw-r--r-- | res/values/strings.xml | 11 | ||||
-rw-r--r-- | res/xml/notification_settings.xml | 13 |
2 files changed, 23 insertions, 1 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index 9db8e8c..253638a 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -5934,6 +5934,9 @@ <!-- Sound & notification: Notification section header [CHAR LIMIT=30] --> <string name="notification_section_header">Notification</string> + <!-- Sound & notification: Advanced section header [CHAR LIMIT=30] --> + <string name="advanced_section_header">Advanced</string> + <!-- Sound & notification > Notification section: Title for the pulse notification light option. [CHAR LIMIT=30] --> <string name="notification_pulse_title">Pulse notification light</string> @@ -5999,7 +6002,7 @@ <!-- Sound & notification > Other sounds: Value for the emergency tone option with value 2: vibrate. [CHAR LIMIT=30] --> <string name="emergency_tone_vibrate">Vibrate</string> - <!-- Sound & notification > Notification section: Title for managing notification listeners option. [CHAR LIMIT=30] --> + <!-- Sound & notification > Advanced section: Title for managing notification listeners option. [CHAR LIMIT=30] --> <string name="manage_notification_access_title">Notification access</string> <!-- Summary of preference to manage notification listeners, when none are enabled --> @@ -6028,6 +6031,12 @@ to dismiss these notifications or touch action buttons within them. </string> + <!-- Sound & notification > Advanced section: Title for managing Do Not Disturb access option. [CHAR LIMIT=40] --> + <string name="manage_zen_access_title">Do Not Disturb access</string> + + <!-- Sound & notification > Do Not Disturb access > Text to display when the list is empty. [CHAR LIMIT=NONE] --> + <string name="zen_access_empty_text">No installed apps have requested Do Not Disturb access</string> + <!-- [CHAR LIMIT=NONE] Text when loading app list in notification settings --> <string name="loading_notification_apps">Loading apps...</string> diff --git a/res/xml/notification_settings.xml b/res/xml/notification_settings.xml index 7956a6d..72a189d 100644 --- a/res/xml/notification_settings.xml +++ b/res/xml/notification_settings.xml @@ -120,6 +120,12 @@ android:value="com.android.settings.Settings$NotificationAppListActivity" /> </PreferenceScreen> + </PreferenceCategory> + + <PreferenceCategory + android:key="advanced" + android:title="@string/advanced_section_header" > + <!-- Notification access --> <Preference android:key="manage_notification_access" @@ -127,6 +133,13 @@ android:persistent="false" android:fragment="com.android.settings.notification.NotificationAccessSettings" /> + <!-- Do Not Disturb access --> + <Preference + android:key="manage_zen_access" + android:title="@string/manage_zen_access_title" + android:persistent="false" + android:fragment="com.android.settings.notification.ZenAccessSettings" /> + </PreferenceCategory> </PreferenceScreen> |