From ef8194e7d9e189ff91842348392397c67be8580b Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Tue, 14 May 2024 11:00:02 +0000 Subject: [PATCH] Change default lock to every time device locks Fix: 339826512 Test: manual Test: atest PrivateSpaceMaintainerTest Test: atest AutoLockPreferenceControllerTest Change-Id: I9f5f028666ac409ab6c732a440b2202f31839c9f --- .../android/settings/privatespace/PrivateSpaceMaintainer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/settings/privatespace/PrivateSpaceMaintainer.java b/src/com/android/settings/privatespace/PrivateSpaceMaintainer.java index 38f724a4d7b..42e854426f4 100644 --- a/src/com/android/settings/privatespace/PrivateSpaceMaintainer.java +++ b/src/com/android/settings/privatespace/PrivateSpaceMaintainer.java @@ -19,7 +19,7 @@ package com.android.settings.privatespace; import static android.os.UserManager.USER_TYPE_PROFILE_PRIVATE; import static android.provider.Settings.Secure.HIDE_PRIVATESPACE_ENTRY_POINT; import static android.provider.Settings.Secure.PRIVATE_SPACE_AUTO_LOCK; -import static android.provider.Settings.Secure.PRIVATE_SPACE_AUTO_LOCK_AFTER_DEVICE_RESTART; +import static android.provider.Settings.Secure.PRIVATE_SPACE_AUTO_LOCK_ON_DEVICE_LOCK; import static android.provider.Settings.Secure.SKIP_FIRST_USE_HINTS; import static android.provider.Settings.Secure.USER_SETUP_COMPLETE; @@ -69,7 +69,7 @@ public class PrivateSpaceMaintainer { /** Default value for private space auto lock settings. */ @Settings.Secure.PrivateSpaceAutoLockOption public static final int PRIVATE_SPACE_AUTO_LOCK_DEFAULT_VAL = - PRIVATE_SPACE_AUTO_LOCK_AFTER_DEVICE_RESTART; + PRIVATE_SPACE_AUTO_LOCK_ON_DEVICE_LOCK; /** Default value for the hide private space sensitive notifications on lockscreen. */ public static final int HIDE_PRIVATE_SPACE_SENSITIVE_NOTIFICATIONS_DISABLED_VAL = 0;