@@ -38,6 +38,9 @@ class MusicPlayer {
setOnPreparedListener {
it.start()
}
+ setOnCompletionListener {
+ mediaPlayers.remove(it)
+ }
mediaPlayers.add(mediaPlayer)