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

Commit 12ca1fa7 authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android Git Automerger
Browse files

am 601d5817: Merge "TouchExplorer crashes if there is incative pointer while...

am 601d5817: Merge "TouchExplorer crashes if there is incative pointer while dragging." into ics-mr0

* commit '601d5817':
  TouchExplorer crashes if there is incative pointer while dragging.
parents 0ad8c3c8 601d5817
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -487,9 +487,17 @@ public class TouchExplorer implements Explorer {
                }
            } break;
            case MotionEvent.ACTION_POINTER_UP: {
                final int activePointerCount = mPointerTracker.getActivePointerCount();
                switch (activePointerCount) {
                    case 1: {
                        // Send an event to the end of the drag gesture.
                        sendMotionEvent(event, MotionEvent.ACTION_UP, pointerIdBits, policyFlags);
                    } break;
                    default: {
                        mCurrentState = STATE_TOUCH_EXPLORING;
                    }
                }
             } break;
            case MotionEvent.ACTION_UP: {
                mCurrentState = STATE_TOUCH_EXPLORING;
            } break;