From 8a718de75d40909e29cea8933e60315d40a00cdd Mon Sep 17 00:00:00 2001 From: Laurent Date: Fri, 28 Aug 2020 18:37:27 +0200 Subject: [PATCH] Fixes warning + update online hands per hour to the same value as iOS --- .../net/pokeranalytics/android/model/realm/Session.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/net/pokeranalytics/android/model/realm/Session.kt b/app/src/main/java/net/pokeranalytics/android/model/realm/Session.kt index 8a03db98..24c0e502 100644 --- a/app/src/main/java/net/pokeranalytics/android/model/realm/Session.kt +++ b/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