mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 07:16:54 +00:00
fixed NPE's below R when close folder
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user