mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-12 06:05:10 -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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mSideDialogAnimator.removeAllUpdateListeners();
|
||||||
|
mSideDialogAnimator.removeAllListeners();
|
||||||
|
|
||||||
mParent.removeView(mDialogLayout);
|
mParent.removeView(mDialogLayout);
|
||||||
mIsInstantiated = false;
|
mIsInstantiated = false;
|
||||||
|
|
||||||
@ -212,7 +215,6 @@ public abstract class SideDialogView {
|
|||||||
mSideDialogAnimator.addListener(new AnimatorListenerAdapter() {
|
mSideDialogAnimator.addListener(new AnimatorListenerAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void onAnimationEnd(Animator animation) {
|
public void onAnimationEnd(Animator animation) {
|
||||||
mSideDialogAnimator.removeListener(this);
|
|
||||||
deflateLayout();
|
deflateLayout();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user