mirror of
https://github.com/Michatec/Radio.git
synced 2026-05-31 00:52:40 +02:00
style(ui): update station card stroke color during reordering and remove play button constraint
This commit is contained in:
@@ -190,8 +190,6 @@ class CollectionAdapter(
|
||||
setPlaybackProgress(stationViewHolder, station)
|
||||
setDownloadProgress(stationViewHolder, station)
|
||||
|
||||
stationViewHolder.playButtonView.isGone = true
|
||||
|
||||
// highlight if reordering
|
||||
if (reorderStationUuid == station.uuid) {
|
||||
stationViewHolder.stationCardView.setStrokeColor(
|
||||
@@ -199,6 +197,12 @@ class CollectionAdapter(
|
||||
ContextCompat.getColor(context, R.color.cardview_reordering)
|
||||
)
|
||||
)
|
||||
} else {
|
||||
stationViewHolder.stationCardView.setStrokeColor(
|
||||
ColorStateList.valueOf(
|
||||
ContextCompat.getColor(context, R.color.list_card_stroke_background)
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
// show / hide edit views
|
||||
|
||||
Reference in New Issue
Block a user