|
|
|
|
@ -179,7 +179,7 @@ class HandHistoryViewModel : ViewModel(), RowRepresentableDataSource, CardCentra |
|
|
|
|
val positions = Position.positionsPerPlayers(this.handHistory.numberOfPlayers) |
|
|
|
|
if (this.isNew && positions.size > 2) { // don't allow any straddle changes if not new, or if it's a headsup |
|
|
|
|
|
|
|
|
|
rows.add(CustomizableRowRepresentable(customViewType = HandRowType.HEADER, resId = R.string.straddle)) |
|
|
|
|
rows.add(CustomizableRowRepresentable(customViewType = HandRowType.HEADER, resId = R.string.straddle, value = "")) |
|
|
|
|
positions.remove(Position.SB) |
|
|
|
|
positions.remove(Position.BB) |
|
|
|
|
rows.add(StraddleRowRepresentable(positions, this.straddlePositions)) |
|
|
|
|
|