Skip to content

Commit

Permalink
Android: Shutdown on finish().
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed Sep 11, 2016
1 parent 92d9308 commit 98b523e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions android/src/org/ppsspp/ppsspp/NativeActivity.java
Expand Up @@ -584,11 +584,11 @@ protected void onStop() {
Log.i(TAG, "onStop - do nothing special");
}

@Override
@Override
protected void onDestroy() {
super.onDestroy();
if (javaGL) {
Log.i(TAG, "onDestroy");
if (javaGL) {
Log.i(TAG, "onDestroy");
mGLSurfaceView.onDestroy();
nativeRenderer.onDestroyed();
NativeApp.audioShutdown();
Expand All @@ -597,8 +597,8 @@ protected void onDestroy() {
audioFocusChangeListener = null;
audioManager = null;
unregisterCallbacks();
}
if (shuttingDown) {
}
if (shuttingDown || isFinishing()) {
NativeApp.shutdown();
}
}
Expand Down

0 comments on commit 98b523e

Please sign in to comment.