|
|
|
@ -693,7 +693,7 @@ class HHBuilder { |
|
|
|
private fun createRowRepresentation() { |
|
|
|
private fun createRowRepresentation() { |
|
|
|
val rows: MutableList<RowRepresentable> = mutableListOf() |
|
|
|
val rows: MutableList<RowRepresentable> = mutableListOf() |
|
|
|
|
|
|
|
|
|
|
|
rows.add(CustomizableRowRepresentable(customViewType = HandRowType.HEADER, resId = R.string.settings)) |
|
|
|
rows.add(CustomizableRowRepresentable(customViewType = HandRowType.HEADER, resId = R.string.settings, value = "")) |
|
|
|
|
|
|
|
|
|
|
|
Street.values().forEach { street -> |
|
|
|
Street.values().forEach { street -> |
|
|
|
|
|
|
|
|
|
|
|
@ -789,7 +789,7 @@ class HHBuilder { |
|
|
|
?: this.sortedActions.size |
|
|
|
?: this.sortedActions.size |
|
|
|
|
|
|
|
|
|
|
|
val potSize = this.sortedActions.take(firstIndexOfStreet).sumByDouble { it.action.effectiveAmount } |
|
|
|
val potSize = this.sortedActions.take(firstIndexOfStreet).sumByDouble { it.action.effectiveAmount } |
|
|
|
val potString = if (potSize > 0) potSize.formatted() else null |
|
|
|
val potString = if (potSize > 0) potSize.formatted() else "" // "" required otherwise random values come up |
|
|
|
|
|
|
|
|
|
|
|
val headerView = CustomizableRowRepresentable(customViewType = HandRowType.HEADER, resId = street.resId, value = potString) |
|
|
|
val headerView = CustomizableRowRepresentable(customViewType = HandRowType.HEADER, resId = street.resId, value = potString) |
|
|
|
rowRepresentables.add(headerView) |
|
|
|
rowRepresentables.add(headerView) |
|
|
|
|