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

Commit 5a885e85 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by Android (Google) Code Review
Browse files

Merge "Keep showing key preview even when keyboard has been changed"

parents dd6ba4b1 075158cc
Loading
Loading
Loading
Loading
+3 −7
Original line number Original line Diff line number Diff line
@@ -412,13 +412,9 @@ public final class PointerTracker implements PointerTrackerQueue.Element,
        final int keyWidth = mKeyboard.mMostCommonKeyWidth;
        final int keyWidth = mKeyboard.mMostCommonKeyWidth;
        final int keyHeight = mKeyboard.mMostCommonKeyHeight;
        final int keyHeight = mKeyboard.mMostCommonKeyHeight;
        mBatchInputArbiter.setKeyboardGeometry(keyWidth, mKeyboard.mOccupiedHeight);
        mBatchInputArbiter.setKeyboardGeometry(keyWidth, mKeyboard.mOccupiedHeight);
        final Key newKey = mKeyDetector.detectHitKey(mKeyX, mKeyY);
        // Keep {@link #mCurrentKey} that comes from previous keyboard. The key preview of
        if (newKey != mCurrentKey) {
        // {@link #mCurrentKey} will be dismissed by {@setReleasedKeyGraphics(Key)} via
            if (sDrawingProxy != null) {
        // {@link onMoveEventInternal(int,int,long)} or {@link #onUpEventInternal(int,int,long)}.
                setReleasedKeyGraphics(mCurrentKey);
            }
            // Keep {@link #mCurrentKey} that comes from previous keyboard.
        }
        mPhantomSuddenMoveThreshold = (int)(keyWidth * PHANTOM_SUDDEN_MOVE_THRESHOLD);
        mPhantomSuddenMoveThreshold = (int)(keyWidth * PHANTOM_SUDDEN_MOVE_THRESHOLD);
        mBogusMoveEventDetector.setKeyboardGeometry(keyWidth, keyHeight);
        mBogusMoveEventDetector.setKeyboardGeometry(keyWidth, keyHeight);
    }
    }