Closes #6 : player select on summary crashes

hh
Laurent 6 years ago
parent 7aada36f8a
commit 29aaf89e99
  1. 1
      app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/HandHistoryAdapter.kt
  2. 1
      app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/PlayerCardsRow.kt

@ -543,6 +543,7 @@ class HandHistoryAdapter(
inner class RowPlayerSummaryHolder(itemView: View) : RowHandHolder(itemView) { inner class RowPlayerSummaryHolder(itemView: View) : RowHandHolder(itemView) {
init { init {
itemView.hps_player_image.tag = PlayerCardsRow.Tag.PLAYER.ordinal
itemView.handLayout.tag = PlayerCardsRow.Tag.CARDS.ordinal itemView.handLayout.tag = PlayerCardsRow.Tag.CARDS.ordinal
} }

@ -17,6 +17,7 @@ open class PlayerCardsRow(private var playerSetupCreationListener: PlayerSetupCr
maxCards: Int? = null) : this(null, position, positionIndex, handHistory, maxCards) maxCards: Int? = null) : this(null, position, positionIndex, handHistory, maxCards)
enum class Tag { enum class Tag {
PLAYER,
CARDS CARDS
} }

Loading…
Cancel
Save