Disable exiting onDestroy as android may kill process while saving config
This commit is contained in:
parent
86ac642258
commit
cbd1905d69
1 changed files with 7 additions and 1 deletions
|
@ -318,7 +318,12 @@ public class SDLActivity extends Activity {
|
||||||
@Override
|
@Override
|
||||||
protected void onDestroy() {
|
protected void onDestroy() {
|
||||||
Log.v("SDL", "onDestroy()");
|
Log.v("SDL", "onDestroy()");
|
||||||
|
/* Stupid android bug: android calles onDestroy
|
||||||
|
and kills process while engine is writing config.
|
||||||
|
it results in configuration loss, so we preferred to disable it
|
||||||
|
*/
|
||||||
|
return;
|
||||||
|
/*
|
||||||
if( mVibrator != null ) mVibrator.cancel();
|
if( mVibrator != null ) mVibrator.cancel();
|
||||||
|
|
||||||
if (SDLActivity.mBrokenLibraries) {
|
if (SDLActivity.mBrokenLibraries) {
|
||||||
|
@ -347,6 +352,7 @@ public class SDLActivity extends Activity {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
// Reset everything in case the user re opens the app
|
// Reset everything in case the user re opens the app
|
||||||
SDLActivity.initialize();
|
SDLActivity.initialize();
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue