Skip to content

Commit 261b18a

Browse files
committed
Fix build.
Change-Id: Id7907dc9ab10e2aab07ba3cb02b4a3a27131f4cd
1 parent b30ddd9 commit 261b18a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

policy/src/com/android/internal/policy/impl/keyguard/KeyguardAbsKeyInputView.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ public void reset() {
8888
}
8989

9090
protected abstract int getPasswordTextViewId();
91-
protected abstract int getWrongPasswordStringId();
9291
protected abstract void resetState();
9392

9493
@Override
@@ -131,6 +130,15 @@ protected boolean onRequestFocusInDescendants(int direction, Rect previouslyFocu
131130
return mPasswordEntry.requestFocus(direction, previouslyFocusedRect);
132131
}
133132

133+
/*
134+
* Override this if you have a different string for "wrong password"
135+
*
136+
* Note that PIN/PUK have their own implementation of verifyPasswordAndUnlock and so don't need this
137+
*/
138+
protected int getWrongPasswordStringId() {
139+
return R.string.kg_wrong_password;
140+
}
141+
134142
protected void verifyPasswordAndUnlock() {
135143
String entry = mPasswordEntry.getText().toString();
136144
if (mLockPatternUtils.checkPassword(entry)) {

0 commit comments

Comments
 (0)