Notify StateManager of predictive back animation.

This way if you go to a different state like All Apps, that
existing animation can be cancelled.

This is essentially the same as b/405836159, but for exiting an app
via predictive back rather than standard home gesture.

Demo: https://drive.google.com/file/d/1x66LHDMQLArZX7sO3RBcI-M-vWW_icRg/view?usp=drive_link&resourcekey=0-_0FYAfonv7YC9u8mCmm07Q

Fix: 412562139
Flag: com.android.launcher3.all_apps_blur
Test: Open app from homescreen, go back, swipe to All Apps quickly.
Change-Id: I83973df5702b271853149dbea5baa1781358c207
This commit is contained in:
Andy Wickham committed 2025-04-29 01:14:28 +00:00
1 parent 740de77860
commit ae48c582e9
3 files changed
+13 -9

No files matched your search

@@ -1149,9 +1149,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
return animatorSet;
}
/**
* Returns animator that controls depth/blur of the background.
*/
/** Returns animator that controls depth/blur of the background during app/widget opening. */
private ObjectAnimator getBackgroundAnimator() {
// When launching an app from overview that doesn't map to a task, we still want to just
// blur the wallpaper instead of the launcher surface as well
@@ -1859,7 +1857,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
}
});
} else if (playWorkspaceReveal) {
anim.play(new WorkspaceRevealAnim(mLauncher, false).getAnimators());
anim.play(new WorkspaceRevealAnim(mLauncher, false).getAnimators());
}
}