Fixes warning + update online hands per hour to the same value as iOS

bs
Laurent 5 years ago
parent caacb95b40
commit 8a718de75d
  1. 10
      app/src/main/java/net/pokeranalytics/android/model/realm/Session.kt

@ -189,11 +189,11 @@ open class Session : RealmObject(), Savable, Editable, StaticRowRepresentableDat
var startDate: Date? = null
set(value) {
field = value
if (field == null) {
if (value == null) {
startDateHourMinuteComponent = null
} else {
val cal = Calendar.getInstance()
cal.time = field
cal.time = value
startDateHourMinuteComponent = cal.hourMinute()
}
@ -214,11 +214,11 @@ open class Session : RealmObject(), Savable, Editable, StaticRowRepresentableDat
var endDate: Date? = null
set(value) {
field = value
if (field == null) {
if (value == null) {
endDateHourMinuteComponent = null
} else {
val cal = Calendar.getInstance()
cal.time = field
cal.time = value
endDateHourMinuteComponent = cal.hourMinute()
}
@ -386,7 +386,7 @@ open class Session : RealmObject(), Savable, Editable, StaticRowRepresentableDat
// Stats
@Ignore
val ONLINE_PLAYER_HANDS_PER_HOUR = 400.0
val ONLINE_PLAYER_HANDS_PER_HOUR = 500.0
@Ignore
val LIVE_PLAYER_HANDS_PER_HOUR = 250.0

Loading…
Cancel
Save