diff options
| author | 2023-05-19 07:49:35 +0000 | |
|---|---|---|
| committer | 2023-05-19 07:49:35 +0000 | |
| commit | cf66426dc9b209a799bd14459a1a3b4e7b966fc7 (patch) | |
| tree | 2486c771727798912eaf123b739165e1df7a111b | |
| parent | aafbe2cf60568871f62ce1ea8ea3cbf7f78e60b4 (diff) | |
| parent | c638a2df37cd714def3d58890f41550dd416086b (diff) | |
Merge "Setting flag for auto confirm feature to always return true" into udc-dev am: c638a2df37
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23288037
Change-Id: If4deec97bf146e43733dee3a79108157ce8867ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | core/java/com/android/internal/widget/LockPatternUtils.java | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/core/java/com/android/internal/widget/LockPatternUtils.java b/core/java/com/android/internal/widget/LockPatternUtils.java index a554d0e77410..92cfa670045e 100644 --- a/core/java/com/android/internal/widget/LockPatternUtils.java +++ b/core/java/com/android/internal/widget/LockPatternUtils.java @@ -50,7 +50,6 @@ import android.os.SystemClock; import android.os.UserHandle; import android.os.UserManager; import android.os.storage.StorageManager; -import android.provider.DeviceConfig; import android.provider.Settings; import android.text.TextUtils; import android.util.Log; @@ -723,15 +722,13 @@ public class LockPatternUtils { } /** - * Whether the auto pin feature logic is available or not. - * @return true, if deviceConfig flag is set to true or the flag is not propagated and - * defaultValue is true. + * Whether the auto pin feature is available or not. + * @return true. This method is always returning true due to feature flags not working + * properly (b/282246482). Ideally, this should check if deviceConfig flag is set to true + * and then return the appropriate value. */ public static boolean isAutoPinConfirmFeatureAvailable() { - return DeviceConfig.getBoolean( - DeviceConfig.NAMESPACE_AUTO_PIN_CONFIRMATION, - FLAG_ENABLE_AUTO_PIN_CONFIRMATION, - /* defaultValue= */ true); + return true; } /** Returns if the given quality maps to an alphabetic password */ |