summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorDan Sandler <dsandler@android.com>2014-02-19 14:42:55 -0500
committerDan Sandler <dsandler@android.com>2014-02-24 01:28:49 +0000
commit91d014a9658d63c141741414a998f1da89a4dbc6 (patch)
tree6c989a56dd3343446617cc923dcd4a321e6a4bbc /res
parentdba5623a0b6ddec7c56a23e516f4f39be02bd0b0 (diff)
downloadpackages_apps_Settings-91d014a9658d63c141741414a998f1da89a4dbc6.tar.gz
packages_apps_Settings-91d014a9658d63c141741414a998f1da89a4dbc6.tar.bz2
packages_apps_Settings-91d014a9658d63c141741414a998f1da89a4dbc6.zip
Settings>Security>Show notifications (on the lockscreen).
Allows the user to toggle Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, which if set shows the complete private contents of that user's notifications atop a securely locked screen. When unset, only the "public" versions of notifications are shown (which may include explicit redactions made by the app). See f/b change I32bb7939 for details. This checkbox is hidden for insecure keyguards ("off" and "none"). It is also unavailable if Settings.Global.LOCK_SCREEN_SHOW_NOTIFICATIONS is not set (see f/b change I9c517949.) Change-Id: Ie1b4c6b949b597b97e536d8ea7e35c9de9b6995f
Diffstat (limited to 'res')
-rw-r--r--res/values/strings.xml12
-rw-r--r--res/xml/security_settings_biometric_weak.xml7
-rw-r--r--res/xml/security_settings_password.xml7
-rw-r--r--res/xml/security_settings_pattern.xml7
-rw-r--r--res/xml/security_settings_pin.xml7
5 files changed, 40 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index a5076e4b7..8cb1510c5 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -4993,4 +4993,16 @@
<string name="dashboard_title">Overview</string>
<string name="dashboard_wip" translatable="false">Overview - work in progress\n\nUse the Drawer on the left to see the settings list</string>
+ <!-- Notifications on lockscreen -->
+ <!-- Label for checkbox controlling the contents of notifications shown on
+ the secure lockscreen [CHAR LIMIT=16] -->
+ <string name="lock_screen_notifications">Show notifications</string>
+ <!-- Summary for lock_screen_notifications: sensitive information will be
+ hidden or redacted from notifications shown on a secure lock screen
+ [CHAR LIMIT=50] -->
+ <string name="lock_screen_notifications_summary_off">Sensitive notification contents will be hidden when locked</string>
+ <!-- Summary for lock_screen_notifications: all information will be
+ shown in notifications shown on a secure lock screen
+ [CHAR LIMIT=50] -->
+ <string name="lock_screen_notifications_summary_on">All notification contents will be shown when locked</string>
</resources>
diff --git a/res/xml/security_settings_biometric_weak.xml b/res/xml/security_settings_biometric_weak.xml
index c2e8ab7cb..d99492231 100644
--- a/res/xml/security_settings_biometric_weak.xml
+++ b/res/xml/security_settings_biometric_weak.xml
@@ -66,6 +66,13 @@
android:title="@string/nfc_unlock_title"
android:persistent="false"/>
+ <CheckBoxPreference
+ android:key="toggle_lock_screen_notifications"
+ android:title="@string/lock_screen_notifications"
+ android:summaryOff="@string/lock_screen_notifications_summary_off"
+ android:summaryOn="@string/lock_screen_notifications_summary_on"
+ android:persistent="false" />
+
</PreferenceCategory>
</PreferenceScreen>
diff --git a/res/xml/security_settings_password.xml b/res/xml/security_settings_password.xml
index a102efa9c..20d764420 100644
--- a/res/xml/security_settings_password.xml
+++ b/res/xml/security_settings_password.xml
@@ -53,6 +53,13 @@
android:title="@string/nfc_unlock_title"
android:persistent="false"/>
+ <CheckBoxPreference
+ android:key="toggle_lock_screen_notifications"
+ android:title="@string/lock_screen_notifications"
+ android:summaryOff="@string/lock_screen_notifications_summary_off"
+ android:summaryOn="@string/lock_screen_notifications_summary_on"
+ android:persistent="false" />
+
</PreferenceCategory>
</PreferenceScreen>
diff --git a/res/xml/security_settings_pattern.xml b/res/xml/security_settings_pattern.xml
index 0584e4ae2..c02df7a42 100644
--- a/res/xml/security_settings_pattern.xml
+++ b/res/xml/security_settings_pattern.xml
@@ -57,6 +57,13 @@
android:title="@string/nfc_unlock_title"
android:persistent="false"/>
+ <CheckBoxPreference
+ android:key="toggle_lock_screen_notifications"
+ android:title="@string/lock_screen_notifications"
+ android:summaryOff="@string/lock_screen_notifications_summary_off"
+ android:summaryOn="@string/lock_screen_notifications_summary_on"
+ android:persistent="false" />
+
</PreferenceCategory>
</PreferenceScreen>
diff --git a/res/xml/security_settings_pin.xml b/res/xml/security_settings_pin.xml
index 1417e2178..2636fa41e 100644
--- a/res/xml/security_settings_pin.xml
+++ b/res/xml/security_settings_pin.xml
@@ -53,6 +53,13 @@
android:title="@string/nfc_unlock_title"
android:persistent="false"/>
+ <CheckBoxPreference
+ android:key="toggle_lock_screen_notifications"
+ android:title="@string/lock_screen_notifications"
+ android:summaryOff="@string/lock_screen_notifications_summary_off"
+ android:summaryOn="@string/lock_screen_notifications_summary_on"
+ android:persistent="false" />
+
</PreferenceCategory>
</PreferenceScreen>