Android: Fix after sometimes window was destroyed that the game would become permanently stuck and eventually show as not responding

This commit is contained in:
UnknownShadow200 2021-09-29 21:08:16 +10:00
parent 4515316c90
commit c21b7a93f3

View file

@ -387,7 +387,8 @@ public class MainActivity extends Activity {
// --------------- VIEWS ----------------
// ======================================
volatile boolean fullscreen;
final Semaphore winDestroyedSem = new Semaphore(0, true);
// static to persist across activity destroy/create
static final Semaphore winDestroyedSem = new Semaphore(0, true);
SurfaceHolder.Callback callback;
CCView curView;