Merge "Fix duplicate depth animations when swiping from overview to home" into sc-dev am: 3cc2f46ca8 am: 7f1f42ffb0

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

Change-Id: If4a30ca04e75906c1a3a469c20e672f2547937dc
This commit is contained in:
Tony Wickham
2021-06-02 00:00:53 +00:00
committed by Automerger Merge Worker
@@ -78,6 +78,10 @@ public class OverviewToHomeAnim {
}
StateAnimationConfig config = new StateAnimationConfig();
if (playWorkspaceRevealAnim) {
// WorkspaceRevealAnim handles the depth, so don't interfere.
config.animFlags |= StateAnimationConfig.SKIP_DEPTH_CONTROLLER;
}
config.duration = startState.getTransitionDuration(mLauncher);
AnimatorSet stateAnim = stateManager.createAtomicAnimation(
startState, NORMAL, config);