mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-11 21:55:34 -04:00
fix(side dialog): crash when deflating twice in quick succession (#6502)
This commit is contained in:
parent
51bc3cfb0a
commit
8b6ec53bd1
@ -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…
x
Reference in New Issue
Block a user