|
|
|
@ -323,7 +323,8 @@ class HandHistoryViewModel : ViewModel(), RowRepresentableDataSource, CardCentra |
|
|
|
Street.SUMMARY -> { |
|
|
|
Street.SUMMARY -> { |
|
|
|
val lastActionIndex = this.sortedActions.size - 1 |
|
|
|
val lastActionIndex = this.sortedActions.size - 1 |
|
|
|
|
|
|
|
|
|
|
|
if (this.sortedActions.activePositions(lastActionIndex).size < 2 || this.sortedActions.isStreetActionClosed(lastActionIndex) == Street.SUMMARY) { |
|
|
|
if (this.sortedActions.isStreetActionClosed(lastActionIndex) == Street.SUMMARY) { |
|
|
|
|
|
|
|
// if (this.sortedActions.activePositions(lastActionIndex).size < 2 || this.sortedActions.isStreetActionClosed(lastActionIndex) == Street.SUMMARY) { |
|
|
|
addStreetHeader(rows, street) |
|
|
|
addStreetHeader(rows, street) |
|
|
|
|
|
|
|
|
|
|
|
val activePositions = this.sortedActions.activePositions(lastActionIndex, true) |
|
|
|
val activePositions = this.sortedActions.activePositions(lastActionIndex, true) |
|
|
|
@ -380,7 +381,7 @@ class HandHistoryViewModel : ViewModel(), RowRepresentableDataSource, CardCentra |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
fun setNumberOfPlayers(playerCount: Int) { |
|
|
|
fun setNumberOfPlayers(playerCount: Int) { |
|
|
|
if (playerCount != this.handHistory.numberOfPlayers) { |
|
|
|
if (playerCount != this.handHistory.numberOfPlayers) { |
|
|
|
this.handHistory.numberOfPlayers = playerCount |
|
|
|
this.handSetup.tableSize = playerCount |
|
|
|
this.handHistory.configure(this.handSetup) |
|
|
|
this.handHistory.configure(this.handSetup) |
|
|
|
load() |
|
|
|
load() |
|
|
|
} |
|
|
|
} |
|
|
|
|