mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-04-18 08:36:56 -04:00
Fix(control-editors): make sure the layout is instantiated before using it
This commit is contained in:
@@ -186,6 +186,11 @@ public abstract class SideDialogView {
|
||||
*/
|
||||
@CallSuper
|
||||
public final void disappear(boolean destroy) {
|
||||
if(!mIsInstantiated) {
|
||||
Log.w("SideDialogView", "Layout not inflated");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!mDisplaying) {
|
||||
if(destroy) {
|
||||
onDisappear();
|
||||
|
||||
Reference in New Issue
Block a user