Change OnDestroy behaviour

This commit is contained in:
mittorn 2016-02-28 21:12:07 +00:00
parent 8fa32c733c
commit 3794611567

View file

@ -322,7 +322,7 @@ public class SDLActivity extends Activity {
and kills process while engine is writing config. and kills process while engine is writing config.
it results in configuration loss, so we preferred to disable it it results in configuration loss, so we preferred to disable it
*/ */
return;
/* /*
if( mVibrator != null ) mVibrator.cancel(); if( mVibrator != null ) mVibrator.cancel();
@ -347,12 +347,12 @@ public class SDLActivity extends Activity {
SDLActivity.mSDLThread = null; SDLActivity.mSDLThread = null;
//Log.v("SDL", "Finished waiting for SDL thread"); //Log.v("SDL", "Finished waiting for SDL thread");
} }*/
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(); finish();
*/
} }
@Override @Override