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

Commit 7d55a713 authored by Miranda Kephart's avatar Miranda Kephart
Browse files

Fix pointer crash in scrolling screenshot CropView

Pointer indices aren't valid for ACTION_UP, so we shouldn't be
conditioning on them.

Bug: 346947609
Fix: 346947609
Test: manual
Flag: EXEMPT trivial change
Change-Id: I856289f71c2359f6879552208b39eead549fd726
parent 8b6d2d95
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -214,8 +214,7 @@ public class CropView extends View {
                break;
            case MotionEvent.ACTION_CANCEL:
            case MotionEvent.ACTION_UP:
                if (mCurrentDraggingBoundary != CropBoundary.NONE
                        && mActivePointerId == event.getPointerId(mActivePointerId)) {
                if (mCurrentDraggingBoundary != CropBoundary.NONE) {
                    updateListener(MotionEvent.ACTION_UP, event.getX(0));
                    return true;
                }