Fix multiple theme songs playing

This commit is contained in:
Damontecres 2025-10-18 21:48:09 -04:00
parent 93f7abfa3b
commit d86309f8f0
No known key found for this signature in database

View file

@ -32,6 +32,7 @@ class ThemeSongPlayer
volume: ThemeSongVolume,
url: String,
) {
stop()
val volumeLevel =
when (volume) {
ThemeSongVolume.UNRECOGNIZED,
@ -64,5 +65,6 @@ class ThemeSongPlayer
fun stop() {
player?.stop()
player?.release()
player = null
}
}