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

This commit is contained in:
Jonathan Miranda
2021-03-31 19:14:56 +00:00
committed by Android (Google) Code Review
@@ -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();
}