Skip to content

Commit

Permalink
Queue: Ignore current item press, fix filter button colouring
Browse files Browse the repository at this point in the history
  • Loading branch information
toasterofbread committed Nov 28, 2023
1 parent 18ba32f commit 03a02e8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ internal fun QueueTab(
}

if (radio_info_position == NowPlayingQueueRadioInfoPosition.TOP_BAR) {
CurrentRadioIndicator({ getBackgroundColour(player) }, multiselect_context, Modifier.padding(bottom = 10.dp))
CurrentRadioIndicator({ getOnBackgroundColour(player) }, multiselect_context, Modifier.padding(bottom = 10.dp))
}

val wave_border_mode_state: NowPlayingQueueWaveBorderMode by PlayerSettings.Key.QUEUE_WAVE_BORDER_MODE.rememberMutableEnumState()
Expand All @@ -248,7 +248,9 @@ internal fun QueueTab(

CompositionLocalProvider(
LocalPlayerState provides remember { player.copy(onClickedOverride = { song, index: Int? ->
player.controller?.seekToSong(index!!)
if (index != player.status.m_index) {
player.controller?.seekToSong(index!!)
}
}) }
) {
var list_position by remember { mutableStateOf(0.dp) }
Expand Down

0 comments on commit 03a02e8

Please sign in to comment.