diff options
author | Jim Miller <jaggies@google.com> | 2010-02-18 19:55:29 -0800 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2010-02-18 19:55:29 -0800 |
commit | c09f87802b03ccab41dd66cb229ceaf8ebbf2c1a (patch) | |
tree | d9a3d7b3fe628b3d26aba7a8af2d045e4f08be4c | |
parent | c9d00d23a578a6e27f4dbc8ecacc3d26fae6a9a6 (diff) | |
download | base-c09f87802b03ccab41dd66cb229ceaf8ebbf2c1a.tar.gz |
Fix 2448345: Fix tactile feedback bug in password/PIN and pattern unlock.
-rw-r--r-- | phone/com/android/internal/policy/impl/PasswordUnlockScreen.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/phone/com/android/internal/policy/impl/PasswordUnlockScreen.java b/phone/com/android/internal/policy/impl/PasswordUnlockScreen.java index 9094ed6..841c2e4 100644 --- a/phone/com/android/internal/policy/impl/PasswordUnlockScreen.java +++ b/phone/com/android/internal/policy/impl/PasswordUnlockScreen.java @@ -53,7 +53,6 @@ public class PasswordUnlockScreen extends LinearLayout implements KeyguardScreen private LockPatternUtils mLockPatternUtils; private PasswordEntryKeyboardView mKeyboardView; private PasswordEntryKeyboardHelper mKeyboardHelper; - private boolean mIsInPortrait; // To avoid accidental lockout due to events while the device in in the pocket, ignore // any passwords with length less than or equal to this length. @@ -88,6 +87,9 @@ public class PasswordUnlockScreen extends LinearLayout implements KeyguardScreen mKeyboardView.setVisibility(mCreatedWithKeyboardOpen ? View.INVISIBLE : View.VISIBLE); mPasswordEntry.requestFocus(); + + mKeyboardHelper.setVibratePattern(mLockPatternUtils.isTactileFeedbackEnabled() ? + com.android.internal.R.array.config_virtualKeyVibePattern : 0); } @Override |