From e8eb66a4f68326e3a51cc4347329f8f8093e1821 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Thu, 7 Jul 2022 19:57:34 +0300 Subject: [PATCH] Resolved crash when resuming before music controller initialized --- core/src/com/unciv/UncivGame.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/UncivGame.kt b/core/src/com/unciv/UncivGame.kt index 2fa7508255..ef6dcc3965 100644 --- a/core/src/com/unciv/UncivGame.kt +++ b/core/src/com/unciv/UncivGame.kt @@ -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