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

Commit b442aee4 authored by Pat Manning's avatar Pat Manning
Browse files

Add null check for recents scaling during quick switch.

Test: manual - FallbackRecentsTest.goToOverviewFromHome and
StartLauncherViaGestureTests.testStressPressHome were previously failing
due to null mActivity in AbsSwipeUpHandler#getScaleProgressDueToScroll.
Bug: 192470757
Change-Id: I562171c22ad3c89e64b4dc853a266c8b8b78402c
parent 3786fa18
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1809,7 +1809,7 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,


    // Scaling of RecentsView during quick switch based on amount of recents scroll
    // Scaling of RecentsView during quick switch based on amount of recents scroll
    private float getScaleProgressDueToScroll() {
    private float getScaleProgressDueToScroll() {
        if (!mActivity.getDeviceProfile().isTablet || mRecentsView == null
        if (mActivity == null || !mActivity.getDeviceProfile().isTablet || mRecentsView == null
                || !mRecentsViewScrollLinked) {
                || !mRecentsViewScrollLinked) {
            return 0;
            return 0;
        }
        }