|
|
|
|
@ -637,9 +637,11 @@ class EditorViewModel : ViewModel(), RowRepresentableDataSource, CardCentralizer |
|
|
|
|
val actions = this.sortedActions.map { it.action } |
|
|
|
|
this.handHistory.actions.addAll(actions) |
|
|
|
|
|
|
|
|
|
realm.executeTransactionAsync { execRealm -> |
|
|
|
|
realm.executeTransactionAsync { asyncRealm -> |
|
|
|
|
Timber.d("hh id = ${this.handHistory.id}") |
|
|
|
|
this.handHistory.defineWinnerPositions() |
|
|
|
|
execRealm.copyToRealmOrUpdate(this.handHistory) |
|
|
|
|
val hh = asyncRealm.copyToRealmOrUpdate(this.handHistory) |
|
|
|
|
Timber.d("hh2 id = ${hh.id}") |
|
|
|
|
} |
|
|
|
|
// this.defineWinnerPositions() |
|
|
|
|
} |
|
|
|
|
|