|
|
|
|
@ -68,10 +68,10 @@ class HandHistoryFragment : RealmFragment(), RowRepresentableDelegate, KeyboardL |
|
|
|
|
initUI() |
|
|
|
|
this.edit() |
|
|
|
|
|
|
|
|
|
this.model.selectionLiveData.value?.index?.let { |
|
|
|
|
Timber.d(">>>> attempt to retrieveEditTextInputConnection") |
|
|
|
|
this.retrieveEditTextInputConnection(it) |
|
|
|
|
} |
|
|
|
|
// this.model.selectionLiveData.value?.index?.let { |
|
|
|
|
// Timber.d(">>>> attempt to retrieveEditTextInputConnection") |
|
|
|
|
// this.retrieveEditTextInputConnection(it) |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -107,13 +107,15 @@ class HandHistoryFragment : RealmFragment(), RowRepresentableDelegate, KeyboardL |
|
|
|
|
this.model.selectionLiveData.observeForever { selection -> |
|
|
|
|
selection?.let { |
|
|
|
|
Timber.d("Current selection is ${selection.index} / ${selection.keyboard}") |
|
|
|
|
retrieveEditTextInputConnection(selection.index) |
|
|
|
|
|
|
|
|
|
when (it.keyboard) { |
|
|
|
|
HHKeyboard.ACTION -> { |
|
|
|
|
val positions = this.model.positionsForSelection() |
|
|
|
|
this.keyboard.setPositions(positions) |
|
|
|
|
} |
|
|
|
|
HHKeyboard.AMOUNT -> { |
|
|
|
|
retrieveEditTextInputConnection(selection.index) |
|
|
|
|
} |
|
|
|
|
else -> {} |
|
|
|
|
} |
|
|
|
|
} ?: run { |
|
|
|
|
|