diff options
author | Xiyuan Xia <xiyuan@google.com> | 2015-05-15 11:01:30 -0700 |
---|---|---|
committer | Xiyuan Xia <xiyuan@google.com> | 2015-05-19 09:04:43 -0700 |
commit | cead91974acf5b31e0c9b5e0b71dc55c2c5c0ab8 (patch) | |
tree | ebc155440da58236dcd4bf6bdaad64ae0a962de1 /packages/Keyguard/src | |
parent | 4d19a8606346cdc22dfba4d5468e3111ad13518f (diff) | |
download | frameworks_base-cead91974acf5b31e0c9b5e0b71dc55c2c5c0ab8.zip frameworks_base-cead91974acf5b31e0c9b5e0b71dc55c2c5c0ab8.tar.gz frameworks_base-cead91974acf5b31e0c9b5e0b71dc55c2c5c0ab8.tar.bz2 |
No input instead of disabling password entry
So that the keyboard does not come and go all the time.
Bug:21271425
Change-Id: I9ba2fa7034777885a6e53f135eca31fc89568e9d
Diffstat (limited to 'packages/Keyguard/src')
-rw-r--r-- | packages/Keyguard/src/com/android/keyguard/KeyguardPasswordView.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardPasswordView.java b/packages/Keyguard/src/com/android/keyguard/KeyguardPasswordView.java index 3fcc3c3..f18c451 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardPasswordView.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardPasswordView.java @@ -35,6 +35,8 @@ import android.view.inputmethod.InputMethodSubtype; import android.widget.TextView; import android.widget.TextView.OnEditorActionListener; +import com.android.internal.widget.TextViewInputDisabler; + import java.util.List; /** * Displays an alphanumeric (latin-1) key entry for the user to enter @@ -49,6 +51,8 @@ public class KeyguardPasswordView extends KeyguardAbsKeyInputView InputMethodManager mImm; private TextView mPasswordEntry; + private TextViewInputDisabler mPasswordEntryDisabler; + private Interpolator mLinearOutSlowInInterpolator; private Interpolator mFastOutLinearInInterpolator; @@ -70,7 +74,7 @@ public class KeyguardPasswordView extends KeyguardAbsKeyInputView protected void resetState() { mSecurityMessageDisplay.setMessage(R.string.kg_password_instructions, false); - mPasswordEntry.setEnabled(true); + setPasswordEntryEnabled(true); } @Override @@ -123,6 +127,7 @@ public class KeyguardPasswordView extends KeyguardAbsKeyInputView Context.INPUT_METHOD_SERVICE); mPasswordEntry = (TextView) findViewById(getPasswordTextViewId()); + mPasswordEntryDisabler = new TextViewInputDisabler(mPasswordEntry); mPasswordEntry.setKeyListener(TextKeyListener.getInstance()); mPasswordEntry.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD); @@ -185,7 +190,7 @@ public class KeyguardPasswordView extends KeyguardAbsKeyInputView @Override protected void setPasswordEntryEnabled(boolean enabled) { - mPasswordEntry.setEnabled(enabled); + mPasswordEntryDisabler.setInputEnabled(enabled); } /** |