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:
@@ -129,7 +129,7 @@ class PlaylistListFragment :
|
||||
private fun updatePlayback(song: Song?, parent: MusicParent?, isPlaying: Boolean) {
|
||||
// Only highlight the playlist if it is currently playing, and if the currently
|
||||
// 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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user