mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-05-24 18:04:46 -04:00
fix(side dialog): crash when deflating twice in quick succession
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user