From 678771b8118c3289aff6814775cbb30fa8aada29 Mon Sep 17 00:00:00 2001 From: Karl Rosaen Date: Fri, 21 Aug 2009 14:00:26 -0700 Subject: [PATCH] New strings and utlity method tweaks associated with updated account unlock screen flow. - 'setPermanentlyLocked(false)' no longer automatically resets the pattern - new string for "waiting to verify account" progress dialog - new string for account unlock screen title when you aren't past the too many attempts, but just hit the 'forgot pattern' button --- .../com/android/internal/widget/LockPatternUtils.java | 10 ++-------- core/res/res/layout/keyguard_screen_glogin_unlock.xml | 1 - core/res/res/values/strings.xml | 9 ++++++++- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/java/com/android/internal/widget/LockPatternUtils.java b/core/java/com/android/internal/widget/LockPatternUtils.java index f0b311cfaa838..58056bd705a18 100644 --- a/core/java/com/android/internal/widget/LockPatternUtils.java +++ b/core/java/com/android/internal/widget/LockPatternUtils.java @@ -316,20 +316,14 @@ public class LockPatternUtils { /** * Set the state of whether the device is permanently locked, meaning the user - * must authenticate via other means. If false, that means the user has gone - * out of permanent lock, so the existing (forgotten) lock pattern needs to - * be cleared. + * must authenticate via other means. + * * @param locked Whether the user is permanently locked out until they verify their * credentials. Occurs after {@link #FAILED_ATTEMPTS_BEFORE_RESET} failed * attempts. */ public void setPermanentlyLocked(boolean locked) { setBoolean(LOCKOUT_PERMANENT_KEY, locked); - - if (!locked) { - setLockPatternEnabled(false); - saveLockPattern(null); - } } /** diff --git a/core/res/res/layout/keyguard_screen_glogin_unlock.xml b/core/res/res/layout/keyguard_screen_glogin_unlock.xml index 74ff3b029cca2..6e00d11a167cf 100644 --- a/core/res/res/layout/keyguard_screen_glogin_unlock.xml +++ b/core/res/res/layout/keyguard_screen_glogin_unlock.xml @@ -42,7 +42,6 @@ android:gravity="center_vertical" android:drawableLeft="@drawable/ic_lock_idle_lock" android:drawablePadding="5dip" - android:text="@android:string/lockscreen_glogin_too_many_attempts" /> diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index c14ecc0837489..073be4f091e87 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -1294,7 +1294,11 @@ their lock gesture --> Forgot pattern? - + + Account unlock + Too many pattern attempts! To unlock, sign in with your Google account @@ -1307,6 +1311,9 @@ Invalid username or password. + + Checking... + "%-l%P"