Better UX for new transactions part 2

dev
Laurent 7 years ago
parent 706ad51d47
commit f25644cc4a
  1. 3
      app/src/main/java/net/pokeranalytics/android/ui/fragment/data/TransactionDataFragment.kt

@ -77,6 +77,7 @@ class TransactionDataFragment : EditableDataFragment(), StaticRowRepresentableDa
super.onRowValueChanged(value, row) super.onRowValueChanged(value, row)
rowRepresentableAdapter.refreshRow(row) rowRepresentableAdapter.refreshRow(row)
if (primaryKey == null) { // automatically change the row for new data
GlobalScope.launch(Dispatchers.Main) { GlobalScope.launch(Dispatchers.Main) {
delay(200) delay(200)
when(row) { when(row) {
@ -89,3 +90,5 @@ class TransactionDataFragment : EditableDataFragment(), StaticRowRepresentableDa
} }
} }
}
Loading…
Cancel
Save