|
|
|
@ -246,28 +246,6 @@ class SessionFragment : RealmFragment(), RowRepresentableDelegate { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*** |
|
|
|
|
|
|
|
* Selects the next row to ease the data capture |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
private fun selectNextRow(currentRow: RowRepresentable) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.viewModel.sessionId == null) { |
|
|
|
|
|
|
|
GlobalScope.launch(Dispatchers.Main) { |
|
|
|
|
|
|
|
delay(200) |
|
|
|
|
|
|
|
when (currentRow) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TransactionRow.BANKROLL -> onRowSelected(0, TransactionRow.TYPE) |
|
|
|
|
|
|
|
// TransactionRow.TYPE -> onRowSelected(0, TransactionRow.AMOUNT) |
|
|
|
|
|
|
|
// TransactionRow.AMOUNT -> onRowSelected(0, TransactionRow.DATE) |
|
|
|
|
|
|
|
// TransactionRow.DATE -> onRowSelected(0, TransactionRow.COMMENT) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Update the UI with the session data |
|
|
|
* Update the UI with the session data |
|
|
|
* Should be called after the initialization of the session |
|
|
|
* Should be called after the initialization of the session |
|
|
|
|