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

Commit d32a472e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add null check for recents scaling during quick switch." into sc-v2-dev

parents 496ca008 b442aee4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1821,7 +1821,7 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,

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