Merge "Fixes NPE in AbsSwipeUpHandler." into sc-dev

This commit is contained in:
TreeHugger Robot 2021-05-05 17:41:48 +00:00 committed by Android (Google) Code Review
commit cf6900d9ee
1 changed files with 1 additions and 1 deletions

View File

@ -1701,7 +1701,7 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
// No need to apply any transform if there is ongoing swipe-pip-to-home animator since
// that animator handles the leash solely.
if (mRecentsAnimationTargets != null && !mIsSwipingPipToHome) {
if (mRecentsViewScrollLinked) {
if (mRecentsViewScrollLinked && mRecentsView != null) {
mTaskViewSimulator.setScroll(mRecentsView.getScrollOffset());
}
mTaskViewSimulator.apply(mTransformParams);