diff --git a/Android/app/src/main/java/org/deadc0de/apple2ix/Apple2Activity.java b/Android/app/src/main/java/org/deadc0de/apple2ix/Apple2Activity.java index d1163c3a..72c83da2 100644 --- a/Android/app/src/main/java/org/deadc0de/apple2ix/Apple2Activity.java +++ b/Android/app/src/main/java/org/deadc0de/apple2ix/Apple2Activity.java @@ -176,10 +176,13 @@ public class Apple2Activity extends Activity { } @Override - protected synchronized void onPause() { + protected void onPause() { super.onPause(); - mPausing.set(true); + boolean wasPausing = mPausing.getAndSet(true); + if (wasPausing) { + return; + } Log.d(TAG, "onPause()"); mView.onPause();