mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 21:03:15 -04:00
parent
2d60fe4565
commit
6e92ea4d29
@ -157,11 +157,13 @@ class UncivGame(parameters: UncivGameParameters) : Game() {
|
||||
// This is ALWAYS called after create() on Android - google "Android life cycle"
|
||||
override fun resume() {
|
||||
super.resume()
|
||||
musicController.resume()
|
||||
if (!isInitialized) return // The stuff from Create() is still happening, so the main screen will load eventually
|
||||
}
|
||||
|
||||
override fun pause() {
|
||||
if (isGameInfoInitialized()) GameSaver.autoSave(this.gameInfo)
|
||||
musicController.pause()
|
||||
super.pause()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user