Merge "Set start time for open folder animation before starting the animation" into udc-dev am: c9cc7ea612

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

Change-Id: Ia5d8a09488c19d64c9518a8d65bba8b4029f6eb0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Sebastián Franco
2023-04-29 03:12:03 +00:00
committed by Automerger Merge Worker
+2 -1
View File
@@ -733,10 +733,11 @@ public class Folder extends AbstractFloatingView implements ClipPathView, DragSo
}
mPageIndicator.stopAllAnimations();
startAnimation(anim);
// Because t=0 has the folder match the folder icon, we can skip the
// first frame and have the same movement one frame earlier.
anim.setCurrentPlayTime(Math.min(getSingleFrameMs(getContext()), anim.getTotalDuration()));
startAnimation(anim);
// Make sure the folder picks up the last drag move even if the finger doesn't move.
if (mDragController.isDragging()) {