Merge "Ensure view translationY is set back to 0 on staggered animation end." into ub-launcher3-rvc-dev am: 7d2011bfe0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11744258 Change-Id: Iddc0609c2123f4c86c8d690f6769282c1ebc1c99
This commit is contained in:
+6
@@ -202,6 +202,12 @@ public class StaggeredWorkspaceAnim {
|
||||
.setStartVelocity(mVelocity)
|
||||
.build(v, VIEW_TRANSLATE_Y);
|
||||
springTransY.setStartDelay(startDelay);
|
||||
springTransY.addListener(new AnimatorListenerAdapter() {
|
||||
@Override
|
||||
public void onAnimationEnd(Animator animation) {
|
||||
v.setTranslationY(0f);
|
||||
}
|
||||
});
|
||||
mAnimators.play(springTransY);
|
||||
|
||||
v.setAlpha(0);
|
||||
|
||||
Reference in New Issue
Block a user