Fixes issue with duplicates

powerreport
Laurent 3 years ago
parent e0511985a3
commit 50564a07b5
  1. 5
      app/src/main/java/net/pokeranalytics/android/model/realm/Session.kt

@ -743,14 +743,15 @@ open class Session : RealmObject(), Savable, RowUpdatable, RowRepresentable, Tim
}
fun duplicate() : Session {
fun duplicate(): Session {
val copy = newInstance(this.realm, this.isTournament(), this.bankroll)
copy.game = this.game
copy.limit = this.limit
copy.cgBiggestBet = this.cgBiggestBet
copy.cgBlinds = this.cgBlinds
copy.cgAnte = this.cgAnte
copy.location = this.location
copy.tournamentEntryFee = this.tournamentEntryFee
copy.tournamentFeatures = this.tournamentFeatures
copy.tournamentName = this.tournamentName

Loading…
Cancel
Save