Do not show comment in read only if empty

hh
Laurent 6 years ago
parent 5dae5e4487
commit ef4b7c9708
  1. 6
      app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/HandHistoryViewModel.kt

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

Loading…
Cancel
Save