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

Commit 28af27cd authored by Steve Kondik's avatar Steve Kondik Committed by Adnan Begovic
Browse files

systemui: Fix NPE in ExpandHelper

 * NPE was seen after first boot, no clear way to reproduce. ACTION_DOWN
   in this method indicated that mVelocityTracker might possibly be
   null, so ignore the movement if necessary.

Change-Id: I3fbe277718d50641e2dcb272132e70fed0e0ddc1
parent eaab1832
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -351,7 +351,9 @@ public class ExpandHelper implements Gefingerpoken {
                mVelocityTracker.addMovement(event);
                break;
            case MotionEvent.ACTION_MOVE:
                if (mVelocityTracker != null) {
                    mVelocityTracker.addMovement(event);
                }
                break;
            default:
                break;