From 3794611567b11a9bb19d294843eeb51178fd5bfb Mon Sep 17 00:00:00 2001 From: mittorn Date: Sun, 28 Feb 2016 21:12:07 +0000 Subject: [PATCH] Change OnDestroy behaviour --- src/org/libsdl/app/SDLActivity.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/org/libsdl/app/SDLActivity.java b/src/org/libsdl/app/SDLActivity.java index dc77719f..b9589712 100644 --- a/src/org/libsdl/app/SDLActivity.java +++ b/src/org/libsdl/app/SDLActivity.java @@ -322,7 +322,7 @@ public class SDLActivity extends Activity { 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(); @@ -347,12 +347,12 @@ public class SDLActivity extends Activity { SDLActivity.mSDLThread = null; //Log.v("SDL", "Finished waiting for SDL thread"); - } + }*/ super.onDestroy(); // Reset everything in case the user re opens the app - SDLActivity.initialize(); - */ + finish(); + } @Override