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

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15358270

Change-Id: I7651d1192328c675bc4b31b97ded7869f7442ad1
This commit is contained in:
TreeHugger Robot
2021-07-22 10:43:33 +00:00
committed by Automerger Merge Worker
@@ -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;
}