Merge "Set start time for open folder animation before starting the animation" into udc-dev am: c9cc7ea612 am: 38780381a1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22872668 Change-Id: Ia3d42e28925cdb40275af18aa59cd3384ce88def Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -733,10 +733,11 @@ public class Folder extends AbstractFloatingView implements ClipPathView, DragSo
|
|||||||
}
|
}
|
||||||
|
|
||||||
mPageIndicator.stopAllAnimations();
|
mPageIndicator.stopAllAnimations();
|
||||||
startAnimation(anim);
|
|
||||||
// Because t=0 has the folder match the folder icon, we can skip the
|
// Because t=0 has the folder match the folder icon, we can skip the
|
||||||
// first frame and have the same movement one frame earlier.
|
// first frame and have the same movement one frame earlier.
|
||||||
anim.setCurrentPlayTime(Math.min(getSingleFrameMs(getContext()), anim.getTotalDuration()));
|
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.
|
// Make sure the folder picks up the last drag move even if the finger doesn't move.
|
||||||
if (mDragController.isDragging()) {
|
if (mDragController.isDragging()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user