DEADSOFTWARE

Android: hack-fix bug #31 and #32
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Sat, 15 Sep 2018 16:26:18 +0000 (19:26 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Sat, 15 Sep 2018 16:26:51 +0000 (19:26 +0300)
android/src/org/d2df/app/Doom2DF.java

index 614110270add01ed5a2464755993dca55259e793..48bd752ca23c487640eab7904ec620e24b124b56 100644 (file)
@@ -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);
+       }
 }