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

Commit 601d5817 authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android (Google) Code Review
Browse files

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

parents 6d9d17fd d8581c7a
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;