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

This commit is contained in:
TreeHugger Robot authored and Android (Google) Code Review committed 2022-06-15 03:29:21 +00:00
commit ec8a85099e
1 file changed
+1 -1
@@ -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 */);
}