summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2015-04-28 14:02:21 -0700
committerRoman Birg <roman@cyngn.com>2015-12-11 10:35:55 -0800
commit2491ab7c142c8fa9ad9a1d9d40ff684ad891962c (patch)
treecae36cc58075225beafd4a8b80b4e5cdbd2a9806
parentbc86445070a5ea526242d8e4e4389d7824a75fd4 (diff)
downloadpackages_apps_Settings-2491ab7c142c8fa9ad9a1d9d40ff684ad891962c.zip
packages_apps_Settings-2491ab7c142c8fa9ad9a1d9d40ff684ad891962c.tar.gz
packages_apps_Settings-2491ab7c142c8fa9ad9a1d9d40ff684ad891962c.tar.bz2
CryptKeeper: pattern unlock displays incorrect pw when correct
fakeUnlockAttempt() gets called when the user inputs any pattern length < 4 which queues up the 'incorrect error' message. The message needs to be cleared before trying to actually check the password so it never goes through in case the password was correct. Change-Id: If78db332d3d696ba443d0be911fb5db504cb14cd Signed-off-by: Roman Birg <roman@cyngn.com>
-rw-r--r--src/com/android/settings/CryptKeeper.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/settings/CryptKeeper.java b/src/com/android/settings/CryptKeeper.java
index 0bc0508..474fce1 100644
--- a/src/com/android/settings/CryptKeeper.java
+++ b/src/com/android/settings/CryptKeeper.java
@@ -180,6 +180,7 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList
@Override
protected void onPreExecute() {
super.onPreExecute();
+ mLockPatternView.removeCallbacks(mFakeUnlockAttemptRunnable);
beginAttempt();
}