Fixes straddle edition issues

hh
Laurent 6 years ago
parent d10bd13379
commit 0a2870b6d9
  1. 4
      app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/ComputedAction.kt

@ -232,7 +232,7 @@ class ComputedAction(var manager: ActionManager,
val actionTypeCanBeEdited: Boolean
get() {
return when (this.action.type) {
Action.Type.POST_SB, Action.Type.POST_BB -> false
Action.Type.POST_SB, Action.Type.POST_BB, Action.Type.STRADDLE -> false
else -> true
}
}
@ -243,7 +243,7 @@ class ComputedAction(var manager: ActionManager,
val amountCanBeEdited: Boolean
get() {
return when (this.action.type) {
Action.Type.POST_SB, Action.Type.POST_BB,
Action.Type.POST_SB, Action.Type.POST_BB, Action.Type.STRADDLE,
Action.Type.BET, Action.Type.RAISE -> true
Action.Type.BET_ALLIN, Action.Type.RAISE_ALLIN -> (this.playerRemainingStack == null)
else -> false

Loading…
Cancel
Save