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

This commit is contained in:
Tony Wickham
2021-06-01 23:17:36 +00:00
committed by Android (Google) Code Review

View File

@@ -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);