Skip to content

Commit

Permalink
fix(side dialog): crash when deflating twice in quick succession (#6502)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias-Boulay authored Jan 18, 2025
1 parent 51bc3cf commit 8b6ec53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app_pojavlauncher/src/main/java/com/kdt/SideDialogView.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ private void deflateLayout() {
return;
}

mSideDialogAnimator.removeAllUpdateListeners();
mSideDialogAnimator.removeAllListeners();

mParent.removeView(mDialogLayout);
mIsInstantiated = false;

Expand Down Expand Up @@ -212,7 +215,6 @@ public final void disappear(boolean destroy) {
mSideDialogAnimator.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
mSideDialogAnimator.removeListener(this);
deflateLayout();
}
});
Expand Down

0 comments on commit 8b6ec53

Please sign in to comment.