OSDN Git Service

Fix 5444675: Fix vibrate regression on Pattern and PIN unlock screens.
authorJim Miller <jaggies@google.com>
Wed, 12 Oct 2011 23:41:30 +0000 (16:41 -0700)
committerJim Miller <jaggies@google.com>
Thu, 13 Oct 2011 00:44:08 +0000 (17:44 -0700)
commitaef555bcf26e770e37f2065913084588fb92c6fb
tree8d7066b1e2ff7d15baad8d7ef11e87cbd4577bd0
parenta76a87a8efbc1e6d3d6f503d937ab18a91638ecf
Fix 5444675: Fix vibrate regression on Pattern and PIN unlock screens.

This fixes a regression caused by a resource change to the vibrate
pattern.  It used to contain an array of delays and values.  Now it has
another mode with just one value with an associated change to the vibrate
API.

Instead of using a custom vibration pattern, it now just follows the system
vibrate pattern for HapticFeedbackConstants.VIRTUAL_KEY, which is shared by the
home key, among other things.

Change-Id: Ib58493a96a42383955ae59f8ac3865bb46a86a31
core/java/com/android/internal/widget/LockPatternView.java
core/java/com/android/internal/widget/PasswordEntryKeyboardHelper.java
policy/src/com/android/internal/policy/impl/PasswordUnlockScreen.java