Swap start radio and shuffle buttons in ArtistOverview

This commit is contained in:
vfsfitvnm 2022-10-08 18:52:50 +02:00
parent ae6babb452
commit f4e839d0d5

View file

@ -93,12 +93,12 @@ fun ArtistOverview(
.padding(endPaddingValues) .padding(endPaddingValues)
) { ) {
headerContent { headerContent {
youtubeArtistPage?.radioEndpoint?.let { radioEndpoint -> youtubeArtistPage?.shuffleEndpoint?.let { endpoint ->
SecondaryTextButton( SecondaryTextButton(
text = "Start radio", text = "Shuffle",
onClick = { onClick = {
binder?.stopRadio() binder?.stopRadio()
binder?.playRadio(radioEndpoint) binder?.playRadio(endpoint)
} }
) )
} }
@ -276,13 +276,13 @@ fun ArtistOverview(
} }
} }
youtubeArtistPage?.shuffleEndpoint?.let { shuffleEndpoint -> youtubeArtistPage?.radioEndpoint?.let { endpoint ->
FloatingActionsContainerWithScrollToTop( FloatingActionsContainerWithScrollToTop(
scrollState = scrollState, scrollState = scrollState,
iconId = R.drawable.shuffle, iconId = R.drawable.radio,
onClick = { onClick = {
binder?.stopRadio() binder?.stopRadio()
binder?.playRadio(shuffleEndpoint) binder?.playRadio(endpoint)
} }
) )
} }