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)
) {
headerContent {
youtubeArtistPage?.radioEndpoint?.let { radioEndpoint ->
youtubeArtistPage?.shuffleEndpoint?.let { endpoint ->
SecondaryTextButton(
text = "Start radio",
text = "Shuffle",
onClick = {
binder?.stopRadio()
binder?.playRadio(radioEndpoint)
binder?.playRadio(endpoint)
}
)
}
@ -276,13 +276,13 @@ fun ArtistOverview(
}
}
youtubeArtistPage?.shuffleEndpoint?.let { shuffleEndpoint ->
youtubeArtistPage?.radioEndpoint?.let { endpoint ->
FloatingActionsContainerWithScrollToTop(
scrollState = scrollState,
iconId = R.drawable.shuffle,
iconId = R.drawable.radio,
onClick = {
binder?.stopRadio()
binder?.playRadio(shuffleEndpoint)
binder?.playRadio(endpoint)
}
)
}