Fixes build

hh
Laurent 6 years ago
parent 4ca7e1c201
commit dbf749f97e
  1. 4
      app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/HandHistoryAdapter.kt
  2. 4
      app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/HandHistoryViewModel.kt
  3. 2
      app/src/main/res/layout/row_hand_player_summary.xml

@ -524,7 +524,7 @@ class HandHistoryAdapter(
configurePlayerImage(itemView.hps_player_image, position, row) configurePlayerImage(itemView.hps_player_image, position, row)
configureCardsLayout(itemView.handLayout, false) configureCardsLayout(itemView.handLayout as LinearLayout, false)
} }
} }
@ -550,7 +550,7 @@ class HandHistoryAdapter(
val positionalRow = row as PositionalRow val positionalRow = row as PositionalRow
itemView.position_button.backgroundTintList = ColorStateList.valueOf(color(positionalRow.isHero)) itemView.position_button.backgroundTintList = ColorStateList.valueOf(color(positionalRow.isHero))
configureCardsLayout(itemView.ps_hand_layout, false) configureCardsLayout(itemView.ps_hand_layout as LinearLayout, false)
} }

@ -265,7 +265,9 @@ class HandHistoryViewModel : ViewModel(), RowRepresentableDataSource, CardCentra
val rows: MutableList<RowRepresentable> = mutableListOf() val rows: MutableList<RowRepresentable> = mutableListOf()
rows.add(HandRowType.COMMENT) if (this.handHistory.comment?.isNotBlank() == true) {
rows.add(HandRowType.COMMENT)
}
// rows.add(CustomizableRowRepresentable(customViewType = HandRowType.HEADER, resId = R.string.settings, value = "")) // rows.add(CustomizableRowRepresentable(customViewType = HandRowType.HEADER, resId = R.string.settings, value = ""))

@ -21,7 +21,7 @@
android:layout_marginStart="8dp"/> android:layout_marginStart="8dp"/>
<include layout="@layout/view_card_layout" <include layout="@layout/view_card_layout"
android:id="@+id/hand_layout" android:id="@+id/handLayout"
android:layout_weight="1" android:layout_weight="1"
android:layout_height="50dp" android:layout_height="50dp"
android:layout_width="0dp" /> android:layout_width="0dp" />

Loading…
Cancel
Save