Merge "Decouple zooms and blurs on app launch" into sc-dev am: c2ef0363af

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

Change-Id: Idadf9a85d4de92e584a524ff48856cca5c81d664
This commit is contained in:
Lucas Dupin
2021-06-30 00:25:43 +00:00
committed by Automerger Merge Worker
3 changed files with 26 additions and 7 deletions

View File

@@ -981,11 +981,14 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
depthController.setSurface(dimLayer);
backgroundRadiusAnim.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationStart(Animator animation) {
depthController.setIsInLaunchTransition(true);
}
@Override
public void onAnimationEnd(Animator animation) {
// Reset depth at the end of the launch animation, so the wallpaper won't be
// zoomed out if an app crashes.
DEPTH.setValue(depthController, 0f);
depthController.setIsInLaunchTransition(false);
depthController.setSurface(null);
if (dimLayer != null) {
new SurfaceControl.Transaction()