Fix folder view sticking during close anim when transitioning launcher page and/or state

Bug: 470662985
Test: manual
Flag: EXEMPT BUGFIX
Change-Id: I7a4841ad49cbc0339f6905869a1bb092e7f0c094
This commit is contained in:
Charlie Anderson authored and Pun Butrach committed 2026-10-26 00:12:20 +07:00
1 parent d66ece9a9c
commit c754a217b9
2 files changed
+8 -3

No files matched your search

+3 -2
View File
@@ -1004,9 +1004,7 @@ public class Folder extends AbstractFloatingView implements ClipPathView, DragSo
@Override
protected void handleClose(boolean animate) {
mIsOpen = false;
mContent.setCanAnnouncePageDescriptionForFolder(false);
if (!animate && mCurrentAnimator != null && mCurrentAnimator.isRunning()) {
mCurrentAnimator.cancel();
}
@@ -1040,6 +1038,7 @@ public class Folder extends AbstractFloatingView implements ClipPathView, DragSo
private void animateClosed() {
if (mIsAnimatingClosed) {
cancelRunningAnimations();
return;
}
@@ -1096,6 +1095,8 @@ public class Folder extends AbstractFloatingView implements ClipPathView, DragSo
}
private void closeComplete(boolean wasAnimated) {
mIsOpen = false;
// TODO: Clear all active animations.
BaseDragLayer parent = (BaseDragLayer) getParent();
if (parent != null) {