|
|
|
@ -37,8 +37,6 @@ class HandHistoryFragment : RealmFragment(), RowRepresentableDelegate, KeyboardL |
|
|
|
|
|
|
|
|
|
|
|
private lateinit var handHistoryAdapter: HandHistoryAdapter |
|
|
|
private lateinit var handHistoryAdapter: HandHistoryAdapter |
|
|
|
|
|
|
|
|
|
|
|
// private var rows: List<RowRepresentable> = listOf() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
companion object { |
|
|
|
companion object { |
|
|
|
|
|
|
|
|
|
|
|
fun newInstance(id: String? = null): HandHistoryFragment { |
|
|
|
fun newInstance(id: String? = null): HandHistoryFragment { |
|
|
|
@ -108,7 +106,7 @@ class HandHistoryFragment : RealmFragment(), RowRepresentableDelegate, KeyboardL |
|
|
|
|
|
|
|
|
|
|
|
when (it.keyboard) { |
|
|
|
when (it.keyboard) { |
|
|
|
HHKeyboard.ACTION -> { |
|
|
|
HHKeyboard.ACTION -> { |
|
|
|
val positions = this.model.positionsForSelection() |
|
|
|
val positions = this.model.positionsToAct() |
|
|
|
this.keyboard.setPositions(positions) |
|
|
|
this.keyboard.setPositions(positions) |
|
|
|
} |
|
|
|
} |
|
|
|
HHKeyboard.AMOUNT -> { |
|
|
|
HHKeyboard.AMOUNT -> { |
|
|
|
@ -245,13 +243,6 @@ class HandHistoryFragment : RealmFragment(), RowRepresentableDelegate, KeyboardL |
|
|
|
override fun actionSelected(action: Action.Type) { |
|
|
|
override fun actionSelected(action: Action.Type) { |
|
|
|
Timber.d(">>> action $action selected") |
|
|
|
Timber.d(">>> action $action selected") |
|
|
|
this.model.actionSelected(action) |
|
|
|
this.model.actionSelected(action) |
|
|
|
|
|
|
|
|
|
|
|
// indexesToRefresh?.let { indexes -> |
|
|
|
|
|
|
|
// indexes.forEach { this.handHistoryAdapter.notifyItemChanged(it) } |
|
|
|
|
|
|
|
// } ?: run { |
|
|
|
|
|
|
|
// this.handHistoryAdapter.notifyDataSetChanged() |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.findNextActionToEdit() |
|
|
|
this.findNextActionToEdit() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|