Loading policy/src/com/android/internal/policy/impl/keyguard/KeyguardAbsKeyInputView.java +9 −1 Original line number Diff line number Diff line Loading @@ -88,7 +88,6 @@ public abstract class KeyguardAbsKeyInputView extends LinearLayout } protected abstract int getPasswordTextViewId(); protected abstract int getWrongPasswordStringId(); protected abstract void resetState(); @Override Loading Loading @@ -131,6 +130,15 @@ public abstract class KeyguardAbsKeyInputView extends LinearLayout return mPasswordEntry.requestFocus(direction, previouslyFocusedRect); } /* * Override this if you have a different string for "wrong password" * * Note that PIN/PUK have their own implementation of verifyPasswordAndUnlock and so don't need this */ protected int getWrongPasswordStringId() { return R.string.kg_wrong_password; } protected void verifyPasswordAndUnlock() { String entry = mPasswordEntry.getText().toString(); if (mLockPatternUtils.checkPassword(entry)) { Loading Loading
policy/src/com/android/internal/policy/impl/keyguard/KeyguardAbsKeyInputView.java +9 −1 Original line number Diff line number Diff line Loading @@ -88,7 +88,6 @@ public abstract class KeyguardAbsKeyInputView extends LinearLayout } protected abstract int getPasswordTextViewId(); protected abstract int getWrongPasswordStringId(); protected abstract void resetState(); @Override Loading Loading @@ -131,6 +130,15 @@ public abstract class KeyguardAbsKeyInputView extends LinearLayout return mPasswordEntry.requestFocus(direction, previouslyFocusedRect); } /* * Override this if you have a different string for "wrong password" * * Note that PIN/PUK have their own implementation of verifyPasswordAndUnlock and so don't need this */ protected int getWrongPasswordStringId() { return R.string.kg_wrong_password; } protected void verifyPasswordAndUnlock() { String entry = mPasswordEntry.getText().toString(); if (mLockPatternUtils.checkPassword(entry)) { Loading