Merge "Snap to destination page before animating folder close." into sc-dev

This commit is contained in:
Jonathan Miranda authored and Android (Google) Code Review committed 2021-03-31 19:14:56 +00:00
commit 1536248f3d
1 file changed
+4
@@ -745,6 +745,10 @@ public class Folder extends AbstractFloatingView implements ClipPathView, DragSo
if (mIsAnimatingClosed) {
return;
}
mContent.completePendingPageChanges();
mContent.snapToPageImmediately(mContent.getDestinationPage());
if (mCurrentAnimator != null && mCurrentAnimator.isRunning()) {
mCurrentAnimator.cancel();
}