mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04:00
Resolved crash when resuming before music controller initialized
This commit is contained in:
parent
ce5f0dd879
commit
e8eb66a4f6
@ -346,8 +346,8 @@ class UncivGame(parameters: UncivGameParameters) : Game() {
|
|||||||
// This is ALWAYS called after create() on Android - google "Android life cycle"
|
// This is ALWAYS called after create() on Android - google "Android life cycle"
|
||||||
override fun resume() {
|
override fun resume() {
|
||||||
super.resume()
|
super.resume()
|
||||||
musicController.resume()
|
|
||||||
if (!isInitialized) return // The stuff from Create() is still happening, so the main screen will load eventually
|
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
|
// This is also needed in resume to open links and notifications
|
||||||
// correctly when the app was already running. The handling in onCreate
|
// correctly when the app was already running. The handling in onCreate
|
||||||
|
Loading…
x
Reference in New Issue
Block a user