mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Android: Shutdown on finish().
This commit is contained in:
parent
92d930887f
commit
98b523ea2c
1 changed files with 5 additions and 5 deletions
|
@ -584,11 +584,11 @@ public class NativeActivity extends Activity implements SurfaceHolder.Callback {
|
|||
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();
|
||||
|
@ -597,8 +597,8 @@ public class NativeActivity extends Activity implements SurfaceHolder.Callback {
|
|||
audioFocusChangeListener = null;
|
||||
audioManager = null;
|
||||
unregisterCallbacks();
|
||||
}
|
||||
if (shuttingDown) {
|
||||
}
|
||||
if (shuttingDown || isFinishing()) {
|
||||
NativeApp.shutdown();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue