Permalink
Browse files

Always shut down audio, regardless of why the task is being destroyed…

…. Might help #9771
  • Loading branch information...
hrydgard committed Aug 8, 2017
1 parent cefb57d commit 7a3a620ff2bc38e0a34120d9ef4b9b650fd2d96e
Showing with 4 additions and 1 deletion.
  1. +4 −1 android/src/org/ppsspp/ppsspp/NativeActivity.java
@@ -91,6 +91,9 @@
private Vibrator vibrator;
private boolean isXperiaPlay;
// This is to avoid losing the game/menu state etc when we are just
// switched-away from or rotated etc.
private boolean shuttingDown;
private static int RESULT_LOAD_IMAGE = 1;
@@ -556,9 +559,9 @@ protected void onDestroy() {
mSurfaceView.onDestroy();
mSurfaceView = null;
}
NativeApp.audioShutdown();
if (shuttingDown || isFinishing()) {
unregisterCallbacks();
NativeApp.audioShutdown();
NativeApp.shutdown();
initialized = false;
}

0 comments on commit 7a3a620

Please sign in to comment.