home: fix stuck playlist indicator
Fix an accidental return statement resulting in the playlist playback indicator not properly updating if a song not in the playlist was played.
This commit is contained in:
parent
d786cd16d7
commit
aae688b642
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ class PlaylistListFragment :
|
||||||
private fun updatePlayback(song: Song?, parent: MusicParent?, isPlaying: Boolean) {
|
private fun updatePlayback(song: Song?, parent: MusicParent?, isPlaying: Boolean) {
|
||||||
// Only highlight the playlist if it is currently playing, and if the currently
|
// Only highlight the playlist if it is currently playing, and if the currently
|
||||||
// playing song is also contained within.
|
// playing song is also contained within.
|
||||||
val playlist = (parent as? Playlist)?.takeIf { it.songs.contains(song) } ?: return
|
val playlist = (parent as? Playlist)?.takeIf { it.songs.contains(song) }
|
||||||
playlistAdapter.setPlaying(playlist, isPlaying)
|
playlistAdapter.setPlaying(playlist, isPlaying)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue