|
|
|
|
@ -197,7 +197,7 @@ class HandHistoryAdapter( |
|
|
|
|
protected fun configureEditTexts(range: IntRange, position: Int, row: RowRepresentable, adapter: RecyclerAdapter) { |
|
|
|
|
|
|
|
|
|
range.forEach { tag -> |
|
|
|
|
val string = adapter.dataSource.stringForRow(row, itemView.context, tag) |
|
|
|
|
val string = adapter.dataSource.charSequenceForRow(row, itemView.context, tag) |
|
|
|
|
|
|
|
|
|
// Text |
|
|
|
|
val editText = itemView.findViewWithTag<EditText>(tag) ?: throw PAIllegalStateException("Edit Text not found for tag: $tag, class: $this") |
|
|
|
|
@ -243,9 +243,9 @@ class HandHistoryAdapter( |
|
|
|
|
|
|
|
|
|
configureEditTexts(0..2, position, row, adapter) |
|
|
|
|
|
|
|
|
|
// itemView.smallBlindEditText.setText(adapter.dataSource.stringForRow(row, itemView.context, 0)) |
|
|
|
|
// itemView.bigBlindEditText.setText(adapter.dataSource.stringForRow(row, itemView.context, 1)) |
|
|
|
|
// itemView.anteEditText.setText(adapter.dataSource.stringForRow(row, itemView.context, 2)) |
|
|
|
|
// itemView.smallBlindEditText.setText(adapter.dataSource.charSequenceForRow(row, itemView.context, 0)) |
|
|
|
|
// itemView.bigBlindEditText.setText(adapter.dataSource.charSequenceForRow(row, itemView.context, 1)) |
|
|
|
|
// itemView.anteEditText.setText(adapter.dataSource.charSequenceForRow(row, itemView.context, 2)) |
|
|
|
|
// itemView.bbAnteSwitch.isChecked = adapter.dataSource.isSelected(position, row, 0) |
|
|
|
|
// |
|
|
|
|
// val sbSelected = adapter.dataSource.isSelected(position, row, 0) |
|
|
|
|
@ -640,8 +640,8 @@ class HandHistoryAdapter( |
|
|
|
|
// toggleFocus(itemView.stackEditText, stackSelected) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// itemView.handEditText.setText(adapter.dataSource.stringForRow(row, itemView.context, 0)) |
|
|
|
|
// itemView.stackEditText.setText(adapter.dataSource.stringForRow(row, itemView.context, 1)) |
|
|
|
|
// itemView.handEditText.setText(adapter.dataSource.charSequenceForRow(row, itemView.context, 0)) |
|
|
|
|
// itemView.stackEditText.setText(adapter.dataSource.charSequenceForRow(row, itemView.context, 1)) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|