Remove 'Hide Sensitive Notifications' item from PS settings page
Remove the hide sensitive notifications toggle, but keep private space sensitive notifications always hidden on lockscreen Bug: 329657118 Test: atest PrivateSpaceMaintainerTest Test: Manual - verified that PS sensitive notifications are always hidden on lockscreen. Change-Id: Id4229c11a2c5a3a4d3fedaf710c51f25af64bf86
This commit is contained in:
@@ -65,6 +65,8 @@ public class PrivateSpaceMaintainer {
|
||||
@Settings.Secure.PrivateSpaceAutoLockOption
|
||||
public static final int PRIVATE_SPACE_AUTO_LOCK_DEFAULT_VAL =
|
||||
PRIVATE_SPACE_AUTO_LOCK_AFTER_DEVICE_RESTART;
|
||||
/** Default value for the hide private space sensitive notifications on lockscreen. */
|
||||
public static final int HIDE_PRIVATE_SPACE_SENSITIVE_NOTIFICATIONS_DISABLED_VAL = 0;
|
||||
|
||||
public enum ErrorDeletingPrivateSpace {
|
||||
DELETE_PS_ERROR_NONE,
|
||||
@@ -316,7 +318,7 @@ public class PrivateSpaceMaintainer {
|
||||
private void setPrivateSpaceSensitiveNotificationsDefaultValue() {
|
||||
Settings.Secure.putIntForUser(mContext.getContentResolver(),
|
||||
Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS,
|
||||
HidePrivateSpaceSensitiveNotificationsController.DISABLED,
|
||||
HIDE_PRIVATE_SPACE_SENSITIVE_NOTIFICATIONS_DISABLED_VAL,
|
||||
mUserHandle.getIdentifier());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user