Fix and cleanup

hh
Laurent 6 years ago
parent 297cb99cd6
commit 3d832392b4
  1. 11
      app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/ActionList.kt

@ -428,8 +428,10 @@ class ActionList(var listener: ActionListListener) : ArrayList<ComputedAction>()
// Blinds must act
val sa = significantAction.action
if (sa.type!!.isBlind && getStreetNextCalls(sa.index).isEmpty()) {
activePositions.remove(significantAction.position)
if (sa.type!!.isBlind) {
if (getStreetNextCalls(sa.index).isEmpty()) {
activePositions.remove(significantAction.position)
}
} else {
activePositions.remove(significantAction.position)
}
@ -450,10 +452,7 @@ class ActionList(var listener: ActionListListener) : ArrayList<ComputedAction>()
} else {
Street.SUMMARY
}
} // BB Walk
// else if (currentStreet == Street.PREFLOP && activePositions.size == 1 && activePositions.first() == Position.BB) {
// return Street.SUMMARY
// }
}
}

Loading…
Cancel
Save