Add a toggle for enabling/disabling sensitive lockscreen notifications for Private Space
This adds a toggle in the Private Space Settings page to control the lockscreen sensitive notifications for the private profile. Sensitive notifications for private profile will still be disabled if sensitive notifications are disabled for the main user. Demo link:https://drive.google.com/file/d/1--LNXziTRTMvfdsJZAh90SiNiPxWNcI8/view?usp=sharing Bug: 317067050 Test: atest SettingsUnitTests:HidePrivateSpaceSensitiveNotificationsControllerTest Change-Id: Ie7f18c1a940e5ffd64112a01c48ac9dee58cb1ab
This commit is contained in:
@@ -1372,6 +1372,12 @@
|
||||
<string name="private_space_choose_your_password_header">Set a password for your private space</string>
|
||||
<!-- Header for private space choose your pattern screen [CHAR LIMIT=40] -->
|
||||
<string name="private_space_choose_your_pattern_header">Set a pattern for your private space</string>
|
||||
<!-- Header for private space apps and notifications section [CHAR LIMIT=40] -->
|
||||
<string name="private_space_apps_and_notifications_header">Apps and notifications</string>
|
||||
<!-- Title for private space sensitive notifications toggle [CHAR LIMIT=80] -->
|
||||
<string name="private_space_notifications_title">Sensitive notifications on lock screen</string>
|
||||
<!-- Summary description for private space sensitive notifications toggle [CHAR LIMIT=200] -->
|
||||
<string name="private_space_sensitive_notifications_description">Show sensitive content when private space is unlocked</string>
|
||||
|
||||
<!-- Text shown when "Add fingerprint" button is disabled -->
|
||||
<string name="fingerprint_add_max">You can add up to <xliff:g id="count" example="5">%d</xliff:g> fingerprints</string>
|
||||
|
@@ -59,6 +59,17 @@
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="@string/private_space_apps_and_notifications_header">
|
||||
|
||||
<com.android.settingslib.RestrictedSwitchPreference
|
||||
android:key="private_space_sensitive_notifications"
|
||||
android:title="@string/private_space_notifications_title"
|
||||
android:summary="@string/private_space_sensitive_notifications_description"
|
||||
settings:controller="com.android.settings.privatespace.HidePrivateSpaceSensitiveNotificationsController" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="@string/private_space_category_system">
|
||||
|
||||
|
Reference in New Issue
Block a user