Skip to content

Commit

Permalink
Fix(control-editors): make sure the layout is instantiated before usi…
Browse files Browse the repository at this point in the history
…ng it
  • Loading branch information
Mathias-Boulay committed Dec 3, 2024
1 parent fd6bea9 commit bc7dfea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app_pojavlauncher/src/main/java/com/kdt/SideDialogView.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ protected final boolean isAtRight() {
*/
@CallSuper
public final void disappear(boolean destroy) {
if(!mIsInstantiated) {
Log.w("SideDialogView", "Layout not inflated");
return;
}

if (!mDisplaying) {
if(destroy) {
onDisappear();
Expand Down

0 comments on commit bc7dfea

Please sign in to comment.