mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 15:50:16 +02:00
Fix multiple theme songs playing
This commit is contained in:
parent
93f7abfa3b
commit
d86309f8f0
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue