Fix game update value

feature/top10
Aurelien Hubert 7 years ago
parent 663cf2ec05
commit 5bcf78dc29
  1. 4
      app/src/main/java/net/pokeranalytics/android/model/realm/Session.kt

@ -31,6 +31,7 @@ import net.pokeranalytics.android.ui.view.rowrepresentable.HeaderRowRepresentabl
import net.pokeranalytics.android.ui.view.rowrepresentable.SeparatorRowRepresentable
import net.pokeranalytics.android.ui.view.rowrepresentable.SessionRow
import net.pokeranalytics.android.util.*
import timber.log.Timber
import java.util.*
import java.util.Currency
import kotlin.collections.ArrayList
@ -763,6 +764,7 @@ open class Session : RealmObject(), SessionInterface, Manageable, StaticRowRepre
}
SessionRow.GAME -> {
Timber.d("Game: $value")
if (value is ArrayList<*>) {
limit = try {
(value[0] as Int?)
@ -774,7 +776,7 @@ open class Session : RealmObject(), SessionInterface, Manageable, StaticRowRepre
} catch (e: Exception) {
null
}
} else if (value is Game?) {
} else if (value is Game) {
game = value
} else if (value == null) {
limit = null

Loading…
Cancel
Save