|
|
|
|
@ -448,6 +448,8 @@ class HandHistoryAdapter( |
|
|
|
|
// Position |
|
|
|
|
itemView.findViewById<Button>(R.id.positionButton)?.let { button -> |
|
|
|
|
button.text = computedAction.position.value |
|
|
|
|
// button.setBackgroundColor(color(computedAction.isHero)) |
|
|
|
|
button.backgroundTintList = ColorStateList.valueOf(color(computedAction.isHero)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Action |
|
|
|
|
@ -509,6 +511,7 @@ class HandHistoryAdapter( |
|
|
|
|
// Position |
|
|
|
|
itemView.findViewById<Button>(R.id.positionButton)?.let { positionButton -> |
|
|
|
|
positionButton.text = playerCardView.position.value |
|
|
|
|
positionButton.setBackgroundColor(color(playerCardView.isHero)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
configurePlayerImage(itemView.hps_player_image, position, row) |
|
|
|
|
@ -530,10 +533,14 @@ class HandHistoryAdapter( |
|
|
|
|
|
|
|
|
|
this.delegate = adapter.delegate |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Position Button |
|
|
|
|
itemView.position_button.text = adapter.dataSource.charSequenceForRow(row, itemView.context, PlayerSetupRow.Tag.POSITION.ordinal) |
|
|
|
|
val positionSelected = adapter.dataSource.isSelected(position, row, PlayerSetupRow.Tag.POSITION.ordinal) |
|
|
|
|
itemView.position_button.backgroundTintList = ColorStateList.valueOf(color(positionSelected)) |
|
|
|
|
// itemView.position_button.backgroundTintList = ColorStateList.valueOf(color(positionSelected)) |
|
|
|
|
|
|
|
|
|
val positionalRow = row as PositionalRow |
|
|
|
|
itemView.position_button.backgroundTintList = ColorStateList.valueOf(color(positionalRow.isHero)) |
|
|
|
|
|
|
|
|
|
configureCardsLayout(itemView.ps_hand_layout, false) |
|
|
|
|
|
|
|
|
|
|