|
|
|
|
@ -575,12 +575,10 @@ class EditorFragment : RealmFragment(), RowRepresentableDelegate, KeyboardListen |
|
|
|
|
*/ |
|
|
|
|
override fun positionSelected(position: Position) { |
|
|
|
|
val rowRepresentableIndex = this.model.nextActionIndexForPosition(position) |
|
|
|
|
this.model.rowRepresentableForPosition(rowRepresentableIndex)?.let { |
|
|
|
|
onRowSelected(rowRepresentableIndex, it, ComputedAction.Tag.ACTION.ordinal) |
|
|
|
|
this.editorAdapter.notifyItemChanged(rowRepresentableIndex) |
|
|
|
|
this.scrollToPosition(rowRepresentableIndex) |
|
|
|
|
} |
|
|
|
|
?: throw PAIllegalStateException("RowRepresentable not found at index $rowRepresentableIndex") |
|
|
|
|
val row = this.model.rowRepresentableForPosition(rowRepresentableIndex) |
|
|
|
|
onRowSelected(rowRepresentableIndex, row, ComputedAction.Tag.ACTION.ordinal) |
|
|
|
|
this.editorAdapter.notifyItemChanged(rowRepresentableIndex) |
|
|
|
|
this.scrollToPosition(rowRepresentableIndex) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Table |
|
|
|
|
|