Merge "Prevent showing divider if launcher was never shown" into tm-qpr-dev

This commit is contained in:
TreeHugger Robot
2022-06-15 03:29:21 +00:00
committed by Android (Google) Code Review

View File

@@ -1676,7 +1676,7 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
boolean wasVisible = mWasLauncherAlreadyVisible || mGestureStarted;
mActivityInterface.onTransitionCancelled(wasVisible, mGestureState.getEndTarget());
if (mRecentsAnimationTargets != null) {
if (mRecentsAnimationTargets != null && wasVisible) {
setDividerShown(true /* shown */, true /* immediate */);
}