From 8cdea1cf33d6d533b191ebb92855119b82c48d50 Mon Sep 17 00:00:00 2001 From: Dzmitry Krukouski Date: Thu, 10 Nov 2016 10:31:55 +0300 Subject: [PATCH] Add System.exit in SDLActivity onDestroy class. --- .../bootstraps/sdl2/build/src/org/libsdl/app/SDLActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pythonforandroid/bootstraps/sdl2/build/src/org/libsdl/app/SDLActivity.java b/pythonforandroid/bootstraps/sdl2/build/src/org/libsdl/app/SDLActivity.java index 6262715050..1d0af85d2b 100644 --- a/pythonforandroid/bootstraps/sdl2/build/src/org/libsdl/app/SDLActivity.java +++ b/pythonforandroid/bootstraps/sdl2/build/src/org/libsdl/app/SDLActivity.java @@ -258,6 +258,9 @@ protected void onDestroy() { super.onDestroy(); // Reset everything in case the user re opens the app SDLActivity.initialize(); + + // Completely closes application. + System.exit(0); } @Override