am 9dce586e: Bugfix: IME gives haptic feedback when button wasn\'t pressed
* commit '9dce586eaa8a99fac05da398694d6e26b2a6dfa8': Bugfix: IME gives haptic feedback when button wasn't pressedmain
commit
e32a77c691
|
@ -272,11 +272,12 @@ public class PointerTracker {
|
|||
mIsRepeatableKey = false;
|
||||
checkMultiTap(eventTime, keyIndex);
|
||||
if (mListener != null) {
|
||||
int primaryCode = isValidKeyIndex(keyIndex) ? mKeys[keyIndex].codes[0] : 0;
|
||||
mListener.onPress(primaryCode);
|
||||
// This onPress call may have changed keyboard layout and have updated mKeyIndex.
|
||||
// If that's the case, mKeyIndex has been updated in setKeyboard().
|
||||
keyIndex = mKeyState.getKeyIndex();
|
||||
if (isValidKeyIndex(keyIndex)) {
|
||||
mListener.onPress(mKeys[keyIndex].codes[0]);
|
||||
// This onPress call may have changed keyboard layout and have updated mKeyIndex.
|
||||
// If that's the case, mKeyIndex has been updated in setKeyboard().
|
||||
keyIndex = mKeyState.getKeyIndex();
|
||||
}
|
||||
}
|
||||
if (isValidKeyIndex(keyIndex)) {
|
||||
if (mKeys[keyIndex].repeatable) {
|
||||
|
|
Loading…
Reference in New Issue