Fix stat display

feature/top10
Aurelien Hubert 7 years ago
parent b1db4ddbb1
commit f92202b075
  1. 6
      app/src/main/java/net/pokeranalytics/android/model/realm/Session.kt

@ -328,7 +328,8 @@ open class Session : RealmObject(), SessionInterface, Savable,
rows.add(
HeaderRowRepresentable(
RowViewType.HEADER_TITLE_AMOUNT_BIG,
title = getDuration(), value = result?.net.toString()
title = getDuration(),
computedStat = ComputedStat(Stat.NETRESULT, result?.net ?: 0.0)
)
)
rows.add(SeparatorRowRepresentable())
@ -337,7 +338,8 @@ open class Session : RealmObject(), SessionInterface, Savable,
rows.add(
HeaderRowRepresentable(
RowViewType.HEADER_TITLE_AMOUNT_BIG,
resId = R.string.pause, value = result?.net.toString()
resId = R.string.pause,
computedStat = ComputedStat(Stat.NETRESULT, result?.net ?: 0.0)
)
)
rows.add(SeparatorRowRepresentable())

Loading…
Cancel
Save