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 | 966b126ea7f24ae16c6a2aa683072bfd2cae8158 (patch) | |
tree | b22b02319b258bbef7c4a5e26d9dea642ade41d0 /policy/com | |
parent | 015398f3fd3d17ddb828937d88bd5b27d722ebf0 (diff) | |
download | frameworks_base-966b126ea7f24ae16c6a2aa683072bfd2cae8158.zip frameworks_base-966b126ea7f24ae16c6a2aa683072bfd2cae8158.tar.gz frameworks_base-966b126ea7f24ae16c6a2aa683072bfd2cae8158.tar.bz2 |
Fix 2448345: Fix tactile feedback bug in password/PIN and pattern unlock.
Diffstat (limited to 'policy/com')
-rw-r--r-- | policy/com/android/internal/policy/impl/PasswordUnlockScreen.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/policy/com/android/internal/policy/impl/PasswordUnlockScreen.java b/policy/com/android/internal/policy/impl/PasswordUnlockScreen.java index 9094ed6..841c2e4 100644 --- a/policy/com/android/internal/policy/impl/PasswordUnlockScreen.java +++ b/policy/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 |