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

Commit 2c956a46 authored by Tony Wickham's avatar Tony Wickham Committed by Android (Google) Code Review
Browse files

Merge "Add null check between calling onMotionPauseDetected() and Changed()"...

Merge "Add null check between calling onMotionPauseDetected() and Changed()" into ub-launcher3-master
parents 47dfc3a3 c1a78591
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -193,10 +193,13 @@ public class MotionPauseDetector {
                if (isFirstDetectedPause) {
                    mOnMotionPauseListener.onMotionPauseDetected();
                }
                // Null check again as onMotionPauseDetected() maybe have called clear().
                if (mOnMotionPauseListener != null) {
                    mOnMotionPauseListener.onMotionPauseChanged(mIsPaused);
                }
            }
        }
    }

    public void clear() {
        mVelocityProvider.clear();