Merge "Prevent NPE when resetting divider bar visibility" into sc-v2-dev

This commit is contained in:
TreeHugger Robot 2021-08-06 05:06:54 +00:00 committed by Android (Google) Code Review
commit 5a25696bfd
1 changed files with 3 additions and 1 deletions

View File

@ -1534,7 +1534,9 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
boolean wasVisible = mWasLauncherAlreadyVisible || mGestureStarted;
mActivityInterface.onTransitionCancelled(wasVisible, mGestureState.getEndTarget());
TaskViewUtils.setDividerBarShown(mRecentsAnimationTargets.nonApps, true);
if (mRecentsAnimationTargets != null) {
TaskViewUtils.setDividerBarShown(mRecentsAnimationTargets.nonApps, true);
}
// Leave the pending invisible flag, as it may be used by wallpaper open animation.
if (mActivity != null) {