From 261b18aaecad87cb0bf64bda86e64257d09c291d Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Thu, 1 Nov 2012 23:54:03 -0400 Subject: [PATCH] Fix build. Change-Id: Id7907dc9ab10e2aab07ba3cb02b4a3a27131f4cd --- .../policy/impl/keyguard/KeyguardAbsKeyInputView.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardAbsKeyInputView.java b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardAbsKeyInputView.java index f6305894574cf..71526d2653ba7 100644 --- a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardAbsKeyInputView.java +++ b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardAbsKeyInputView.java @@ -88,7 +88,6 @@ public abstract class KeyguardAbsKeyInputView extends LinearLayout } protected abstract int getPasswordTextViewId(); - protected abstract int getWrongPasswordStringId(); protected abstract void resetState(); @Override @@ -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)) {