mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
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:
parent
4515316c90
commit
c21b7a93f3
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue