Fixes issue when settings number of tables of 0

powerreport
Laurent 3 years ago
parent 89effc942f
commit b66f67be23
  1. 2
      app/src/main/java/net/pokeranalytics/android/model/realm/Session.kt

@ -294,9 +294,11 @@ open class Session : RealmObject(), Savable, RowUpdatable, RowRepresentable, Tim
// The number of tables played at the same time // The number of tables played at the same time
var numberOfTables: Int = 1 var numberOfTables: Int = 1
set(value) { set(value) {
if (value > 0) {
field = value field = value
this.computeStats() this.computeStats()
} }
}
// The hand histories of the session // The hand histories of the session
@LinkingObjects("session") @LinkingObjects("session")

Loading…
Cancel
Save