From e58e184889dd7cd585c1b7b85c55cc6a3f8c1223 Mon Sep 17 00:00:00 2001 From: CrispyXYZ <64761703+CrispyXYZ@users.noreply.github.com> Date: Tue, 23 Aug 2022 02:09:47 +0800 Subject: [PATCH] close app completely when clicked 'Exit' button (#7655) * kill app when clicked 'Exit' button * add super.onDestroy() * tries to fix temporarily * Update AndroidLauncher.kt * add System.exit(0) * a little fix --- core/src/com/unciv/UncivGame.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/com/unciv/UncivGame.kt b/core/src/com/unciv/UncivGame.kt index 89795aa95a..41fa033225 100644 --- a/core/src/com/unciv/UncivGame.kt +++ b/core/src/com/unciv/UncivGame.kt @@ -399,6 +399,8 @@ class UncivGame(parameters: UncivGameParameters) : Game() { // On desktop this should only be this one and "DestroyJavaVM" logRunningThreads() + + System.exit(0) } private fun logRunningThreads() {