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

This commit is contained in:
Sebastián Franco authored and Android (Google) Code Review committed 2023-04-29 02:39:01 +00:00
commit c9cc7ea612
1 file changed
+2 -1
+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()) {