mirror of
https://github.com/Michatec/Radio.git
synced 2026-05-31 03:12: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)
|
setPlaybackProgress(stationViewHolder, station)
|
||||||
setDownloadProgress(stationViewHolder, station)
|
setDownloadProgress(stationViewHolder, station)
|
||||||
|
|
||||||
stationViewHolder.playButtonView.isGone = true
|
|
||||||
|
|
||||||
// highlight if reordering
|
// highlight if reordering
|
||||||
if (reorderStationUuid == station.uuid) {
|
if (reorderStationUuid == station.uuid) {
|
||||||
stationViewHolder.stationCardView.setStrokeColor(
|
stationViewHolder.stationCardView.setStrokeColor(
|
||||||
@@ -199,6 +197,12 @@ class CollectionAdapter(
|
|||||||
ContextCompat.getColor(context, R.color.cardview_reordering)
|
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
|
// show / hide edit views
|
||||||
|
|||||||
Reference in New Issue
Block a user