Merge "Allow depth animation when user swipes back to home." into tm-dev am: d17cb2722c

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

Change-Id: I0ce68bc0316123f84963eecae5e7c8ed0a164c2f
This commit is contained in:
Jon Miranda
2022-03-21 22:45:30 +00:00
committed by Automerger Merge Worker
@@ -28,6 +28,7 @@ import static com.android.launcher3.LauncherAnimUtils.SCALE_PROPERTY;
import static com.android.launcher3.LauncherAnimUtils.VIEW_BACKGROUND_COLOR;
import static com.android.launcher3.LauncherState.ALL_APPS;
import static com.android.launcher3.LauncherState.BACKGROUND_APP;
import static com.android.launcher3.LauncherState.NORMAL;
import static com.android.launcher3.LauncherState.OVERVIEW;
import static com.android.launcher3.Utilities.mapBoundToRange;
import static com.android.launcher3.Utilities.postAsyncCallback;
@@ -1617,6 +1618,12 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
if (!mLauncher.isInState(LauncherState.ALL_APPS)) {
anim.play(new StaggeredWorkspaceAnim(mLauncher, velocity.y,
true /* animateOverviewScrim */, launcherView).getAnimators());
if (!areAllTargetsTranslucent(appTargets)) {
anim.play(ObjectAnimator.ofFloat(mLauncher.getDepthController(), DEPTH,
BACKGROUND_APP.getDepth(mLauncher), NORMAL.getDepth(mLauncher)));
}
// We play StaggeredWorkspaceAnim as a part of the closing window animation.
playWorkspaceReveal = false;
} else {