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