mirror of
https://github.com/PojavLauncherTeam/PojavLauncher.git
synced 2025-12-28 05:14:37 +00:00
fix(side dialog): crash when deflating twice in quick succession
This commit is contained in:
parent
315352a979
commit
f2ee122e01
@ -132,6 +132,9 @@ public abstract class SideDialogView {
|
||||
return;
|
||||
}
|
||||
|
||||
mSideDialogAnimator.removeAllUpdateListeners();
|
||||
mSideDialogAnimator.removeAllListeners();
|
||||
|
||||
mParent.removeView(mDialogLayout);
|
||||
mIsInstantiated = false;
|
||||
|
||||
@ -212,7 +215,6 @@ public abstract class SideDialogView {
|
||||
mSideDialogAnimator.addListener(new AnimatorListenerAdapter() {
|
||||
@Override
|
||||
public void onAnimationEnd(Animator animation) {
|
||||
mSideDialogAnimator.removeListener(this);
|
||||
deflateLayout();
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user