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

Commit fe3632bc authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru
Browse files

Merge into jb-mr1-dev

Change-Id: Ib0523ded92e2fe4be6a32d092baa55b527229c07
parents 56d8cc10 03e7b888
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -25,7 +25,6 @@ import android.gesture.GestureStore;
import android.gesture.GestureStroke;
import android.gesture.Prediction;
import android.graphics.Rect;
import android.os.Build;
import android.os.Handler;
import android.os.SystemClock;
import android.util.Slog;
@@ -687,16 +686,11 @@ class TouchExplorer implements EventStreamTransformation {
                }
            } break;
            case MotionEvent.ACTION_POINTER_UP: {
                final int activePointerCount = mReceivedPointerTracker.getActivePointerCount();
                switch (activePointerCount) {
                    case 1: {
                        // Send an event to the end of the drag gesture.
                        sendMotionEvent(event, MotionEvent.ACTION_UP, pointerIdBits, policyFlags);
                    } break;
                    default: {
                final int pointerId = event.getPointerId(event.getActionIndex());
                if (mReceivedPointerTracker.isActiveOrWasLastActiveUpPointer(pointerId)) {
                    sendUpForInjectedDownPointers(event, policyFlags);
                    mCurrentState = STATE_TOUCH_EXPLORING;
                }
                }
             } break;
            case MotionEvent.ACTION_UP: {
                // Announce the end of a new touch interaction.