mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-21 13:18:56 +07:00
Resolved crash when resuming before music controller initialized
This commit is contained in:
@ -346,8 +346,8 @@ 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
|
||||
musicController.resume()
|
||||
|
||||
// This is also needed in resume to open links and notifications
|
||||
// correctly when the app was already running. The handling in onCreate
|
||||
|
Reference in New Issue
Block a user