diff --git a/android-project/src/org/libsdl/app/SDLActivity.java b/android-project/src/org/libsdl/app/SDLActivity.java index 8fbbd7832..f41db7364 100644 --- a/android-project/src/org/libsdl/app/SDLActivity.java +++ b/android-project/src/org/libsdl/app/SDLActivity.java @@ -265,9 +265,6 @@ public class SDLActivity extends Activity { protected void onDestroy() { Log.v(TAG, "onDestroy()"); - mNextNativeState = NativeState.PAUSED; - SDLActivity.handleNativeState(); - if (SDLActivity.mBrokenLibraries) { super.onDestroy(); // Reset everything in case the user re opens the app @@ -275,6 +272,9 @@ public class SDLActivity extends Activity { return; } + mNextNativeState = NativeState.PAUSED; + SDLActivity.handleNativeState(); + // Send a quit message to the application SDLActivity.mExitCalledFromJava = true; SDLActivity.nativeQuit();