From 3d832392b4e8a2f4084f71a83445368966248f0a Mon Sep 17 00:00:00 2001 From: Laurent Date: Thu, 9 Apr 2020 10:53:58 +0200 Subject: [PATCH] Fix and cleanup --- .../ui/modules/handhistory/model/ActionList.kt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/ActionList.kt b/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/ActionList.kt index 25d8c28c..06c19dcf 100644 --- a/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/ActionList.kt +++ b/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/ActionList.kt @@ -428,8 +428,10 @@ class ActionList(var listener: ActionListListener) : ArrayList() // 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() } else { Street.SUMMARY } - } // BB Walk -// else if (currentStreet == Street.PREFLOP && activePositions.size == 1 && activePositions.first() == Position.BB) { -// return Street.SUMMARY -// } + } }