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

Commit 21ce2d8c authored by Michael Jurka's avatar Michael Jurka
Browse files

Fix a NPE in Recents

Change-Id: I8fead3b20646e92add6acd49440db675a190baee
parent 52f159c7
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -165,11 +165,13 @@ public class SwipeHelper {
            case MotionEvent.ACTION_DOWN:
                mDragging = false;
                mCurrView = mCallback.getChildAtPosition(ev);
                mVelocityTracker.clear();
                if (mCurrView != null) {
                    mCurrAnimView = mCallback.getChildContentView(mCurrView);
                    mCanCurrViewBeDimissed = mCallback.canChildBeDismissed(mCurrView);
                mVelocityTracker.clear();
                    mVelocityTracker.addMovement(ev);
                    mInitialTouchPos = getPos(ev);
                }
                break;
            case MotionEvent.ACTION_MOVE:
                if (mCurrView != null) {