Merge "Add resume callback to animate back to appropriate depth." into ub-launcher3-rvc-dev

This commit is contained in:
TreeHugger Robot
2020-04-16 21:47:38 +00:00
committed by Android (Google) Code Review
@@ -291,6 +291,15 @@ public abstract class QuickstepAppTransitionManagerImpl extends LauncherAppTrans
launcherContentAnimator.second.run();
}
});
} else {
anim.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationStart(Animator animation) {
mLauncher.addOnResumeCallback(() ->
ObjectAnimator.ofFloat(mLauncher.getDepthController(), DEPTH,
mLauncher.getStateManager().getState().getDepth(mLauncher)).start());
}
});
}
}