mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-21 13:18:56 +07:00
* 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:

committed by
Yair Morgenstern

parent
ca59dc4e1f
commit
8a327fa7be
@ -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)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user