fixed NPE's below R when close folder

This commit is contained in:
MrSluffy
2024-12-17 10:22:06 +08:00
parent 1cd20b1243
commit 9d387bb310

View File

@@ -910,14 +910,18 @@ public class Folder extends AbstractFloatingView implements ClipPathView, DragSo
a.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationStart(Animator animation) {
setWindowInsetsAnimationCallback(null);
if (Utilities.ATLEAST_R) {
setWindowInsetsAnimationCallback(null);
}
mIsAnimatingClosed = true;
}
@Override
public void onAnimationEnd(Animator animation) {
if (mKeyboardInsetAnimationCallback != null) {
setWindowInsetsAnimationCallback(mKeyboardInsetAnimationCallback);
if (Utilities.ATLEAST_R) {
setWindowInsetsAnimationCallback(mKeyboardInsetAnimationCallback);
}
}
closeComplete(true);
announceAccessibilityChanges();