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

Commit 0be8f08d authored by Winson Chung's avatar Winson Chung
Browse files

Fix crash when starting quickscrub while ending quickscrub animation.

Bug: 73500810
Test: Drag quickscrub, release, and before animation ends, drag again
Change-Id: I9d099282b9494d9dd7d70ded4e17a037d931879e
parent f56981d9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -227,6 +227,10 @@ public class QuickScrubController extends GestureDetector.SimpleOnGestureListene
            case MotionEvent.ACTION_DOWN: {
                int x = (int) event.getX();
                int y = (int) event.getY();
                // End any existing quickscrub animations before starting the new transition
                if (mQuickScrubEndAnimator != null) {
                    mQuickScrubEndAnimator.end();
                }
                mHomeButtonView = homeButton.getCurrentView();
                if (isQuickScrubEnabled()
                        && mNavigationBarView.getDownHitTarget() == HIT_TARGET_HOME) {