|
|
|
|
@ -205,6 +205,7 @@ class HandHistoryViewModel : ViewModel(), RowRepresentableDataSource, CardCentra |
|
|
|
|
|
|
|
|
|
private fun readRowRepresentation(): MutableList<RowRepresentable> { |
|
|
|
|
val rows: MutableList<RowRepresentable> = mutableListOf() |
|
|
|
|
rows.add(HandRowType.COMMENT) |
|
|
|
|
|
|
|
|
|
// TODO remove useless settings, collapse multifolds |
|
|
|
|
|
|
|
|
|
@ -723,6 +724,7 @@ class HandHistoryViewModel : ViewModel(), RowRepresentableDataSource, CardCentra |
|
|
|
|
override fun editDescriptors(row: RowRepresentable): List<RowRepresentableEditDescriptor>? { |
|
|
|
|
return when (row) { |
|
|
|
|
HandRowType.COMMENT -> listOf(RowRepresentableEditDescriptor(this.handHistory.comment, R.string.comment)) |
|
|
|
|
HandRowType.PLAYER_NUMBER -> listOf(RowRepresentableEditDescriptor(this.handHistory.numberOfPlayers)) |
|
|
|
|
HandRowType.ANTE -> listOf(RowRepresentableEditDescriptor(inputType = InputType.TYPE_CLASS_NUMBER or InputType.TYPE_NUMBER_FLAG_DECIMAL)) |
|
|
|
|
else -> null |
|
|
|
|
} |
|
|
|
|
|