From: DeaDDooMER Date: Sat, 15 Sep 2018 16:26:18 +0000 (+0300) Subject: Android: hack-fix bug #31 and #32 X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=8d99e158428b4ed90b09ee17933c9a2a48532157;p=d2df-sdl.git Android: hack-fix bug #31 and #32 --- diff --git a/android/src/org/d2df/app/Doom2DF.java b/android/src/org/d2df/app/Doom2DF.java index 6141102..48bd752 100644 --- a/android/src/org/d2df/app/Doom2DF.java +++ b/android/src/org/d2df/app/Doom2DF.java @@ -33,4 +33,12 @@ public class Doom2DF extends SDLActivity { CopyAssets.copyAssets(SDL.getContext(), "instruments"); CopyAssets.copyAssets(SDL.getContext(), "timidity.cfg"); } + + @Override + protected void onDestroy() { + super.onDestroy(); + + /* This will fix bug #31 and may be #32 */ + System.exit(0); + } }