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

Commit 2abd8547 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Linger the "more suggestions" when the user is sliding the touch point

Bug: 5299024
Change-Id: I00b5e59ba480cbf057bdd69d1357d2c477be90f7
parent cd15b930
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -230,10 +230,13 @@ public class MoreSuggestionsView extends KeyboardView implements MoreKeysPanel {

    @Override
    public boolean dispatchTouchEvent(MotionEvent me) {
        final int x = (int)me.getX();
        final int y = (int)me.getY();
        final int index = me.getActionIndex();
        final int id = me.getPointerId(index);
        final PointerTracker tracker = PointerTracker.getPointerTracker(id, this);
        final int x = (int)me.getX(index);
        final int y = (int)me.getY(index);
        final boolean inside = (x >= 0 && x < getWidth() && y >= 0 && y < getHeight());
        if (inside) {
        if (inside || tracker.isInSlidingKeyInput()) {
            return super.dispatchTouchEvent(me);
        } else {
            dismissMoreKeysPanel();