Fix for the "Back button can't end Unciv (#1513)" (#1661)

* Callback to exit the game by 'Back' button

* Prompt dialog for the game exit

* Additional strings for translations are generated

* Do not show exit prompt dialog twice
This commit is contained in:
JackRainy
2020-01-12 23:05:49 +02:00
committed by Yair Morgenstern
parent ca59dc4e1f
commit 8a327fa7be
25 changed files with 77 additions and 10 deletions

View File

@ -9,7 +9,9 @@ class AndroidLauncher : AndroidApplication() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val config = AndroidApplicationConfiguration().apply { useImmersiveMode = true }
val game = UncivGame(BuildConfig.VERSION_NAME, CrashReportSenderAndroid(this))
val game = UncivGame(BuildConfig.VERSION_NAME,
CrashReportSenderAndroid(this))
{this.finish()}
initialize(game, config)
}
}