- Bugs fixed.
This commit is contained in:
An Bui 2026-01-25 19:54:37 +07:00
parent 362cc9b46a
commit 5deba60382
7 changed files with 47 additions and 66 deletions

View file

@ -462,7 +462,12 @@ public class X11Activity extends AppCompatActivity implements View.OnApplyWindow
dialog.dismiss();
});
if (!isFinishing() && !isDestroyed()) dialog.show();
if (!isFinishing()
&& !isDestroyed()
&& getWindow() != null
&& getWindow().getDecorView().isShown()) {
dialog.show();
}
});
upGameBtn.setOnTouchListener((v, event) -> {