Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e32a77c6 authored by Ken Wakasa's avatar Ken Wakasa Committed by Android Git Automerger
Browse files

am 9dce586e: Bugfix: IME gives haptic feedback when button wasn\'t pressed

* commit '9dce586e':
  Bugfix: IME gives haptic feedback when button wasn't pressed
parents c8b9c322 9dce586e
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -272,12 +272,13 @@ public class PointerTracker {
        mIsRepeatableKey = false;
        checkMultiTap(eventTime, keyIndex);
        if (mListener != null) {
            int primaryCode = isValidKeyIndex(keyIndex) ? mKeys[keyIndex].codes[0] : 0;
            mListener.onPress(primaryCode);
            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) {
                repeatKey(keyIndex);