|
|
|
@ -9,6 +9,7 @@ import net.pokeranalytics.android.exceptions.PAIllegalStateException |
|
|
|
import net.pokeranalytics.android.model.handhistory.HandSetup |
|
|
|
import net.pokeranalytics.android.model.handhistory.HandSetup |
|
|
|
import net.pokeranalytics.android.model.handhistory.Position |
|
|
|
import net.pokeranalytics.android.model.handhistory.Position |
|
|
|
import net.pokeranalytics.android.model.handhistory.Street |
|
|
|
import net.pokeranalytics.android.model.handhistory.Street |
|
|
|
|
|
|
|
import net.pokeranalytics.android.model.realm.Session |
|
|
|
import net.pokeranalytics.android.model.realm.handhistory.* |
|
|
|
import net.pokeranalytics.android.model.realm.handhistory.* |
|
|
|
import net.pokeranalytics.android.ui.adapter.RowRepresentableDataSource |
|
|
|
import net.pokeranalytics.android.ui.adapter.RowRepresentableDataSource |
|
|
|
import net.pokeranalytics.android.ui.modules.handhistory.HandRowType |
|
|
|
import net.pokeranalytics.android.ui.modules.handhistory.HandRowType |
|
|
|
@ -217,7 +218,7 @@ class HandHistoryViewModel : ViewModel(), RowRepresentableDataSource, CardCentra |
|
|
|
rows.add(HandRowType.BLINDS) |
|
|
|
rows.add(HandRowType.BLINDS) |
|
|
|
|
|
|
|
|
|
|
|
val positions = Position.positionsPerPlayers(this.handHistory.numberOfPlayers) |
|
|
|
val positions = Position.positionsPerPlayers(this.handHistory.numberOfPlayers) |
|
|
|
if (this.isNew && positions.size > 2) { // don't allow any straddle changes if not new, or if it's a headsup |
|
|
|
if (this.handSetup.type != Session.Type.TOURNAMENT && this.isNew && positions.size > 2) { // don't allow any straddle changes if not new, or if it's a headsup |
|
|
|
|
|
|
|
|
|
|
|
rows.add(CustomizableRowRepresentable(customViewType = HandRowType.HEADER, resId = R.string.straddle, value = "")) |
|
|
|
rows.add(CustomizableRowRepresentable(customViewType = HandRowType.HEADER, resId = R.string.straddle, value = "")) |
|
|
|
positions.remove(Position.SB) |
|
|
|
positions.remove(Position.SB) |
|
|
|
|