android: prevent the app from a semi-crash when exiting a game
authorXeli
Thu, 19 Apr 2012 18:15:03 +0200
changeset 6892 c02710a8bac4
parent 6891 ab9843957664
child 6893 69cc0166be8d
android: prevent the app from a semi-crash when exiting a game
project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/SDLActivity.java
--- a/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/SDLActivity.java	Sun Apr 15 00:47:22 2012 +0400
+++ b/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/SDLActivity.java	Thu Apr 19 18:15:03 2012 +0200
@@ -101,7 +101,6 @@
 	}
 
 	public void onBackPressed(){
-		super.onBackPressed();
 		PascalExports.HWterminate(true);
 	}
 
@@ -441,7 +440,7 @@
 		} catch (InterruptedException e) {
 			e.printStackTrace();
 		}
-		//Log.v("SDL", "SDL thread terminated");
+		Log.v("SDL", "SDL thread terminated");
 		//Log.v("SDL", "SDL thread terminated");
 	}
 }