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

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

Change-Id: Ie5ef2aff3414a85e0cd855e0bda04610f5c74c30
This commit is contained in:
Tony Wickham
2021-06-01 23:41:00 +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);