From 233d88a277b5806fd33a5aad50c1014e7af4bd7a Mon Sep 17 00:00:00 2001 From: Andrew Zeng Date: Thu, 6 Apr 2017 15:34:45 -0700 Subject: [PATCH] Use MIN_LOCK_PASSWORD_SIZE as min password length. Currently MIN_LOCK_PASSWORD_SIZE=MIN_LOCK_PATTERN_SIZE, so there shouldn't be any behavior changes stemming from this. Change-Id: I15369723e7fd0cc3fe8230c9b450faf929fefd00 --- src/com/android/settings/CryptKeeper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/CryptKeeper.java b/src/com/android/settings/CryptKeeper.java index 99c6e8b011b..1f331d7a635 100644 --- a/src/com/android/settings/CryptKeeper.java +++ b/src/com/android/settings/CryptKeeper.java @@ -888,7 +888,7 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList mPasswordEntry.setEnabled(false); setBackFunctionality(false); - if (password.length() >= LockPatternUtils.MIN_LOCK_PATTERN_SIZE) { + if (password.length() >= LockPatternUtils.MIN_LOCK_PASSWORD_SIZE) { new DecryptTask().execute(password); } else { // Allow user to make as many of these as they want.