Fixes issue where the displayed date was the creationDate, not the startDate

od
Laurent 6 years ago
parent 1a0c89e7cf
commit 4b7af54399
  1. 1
      app/src/main/java/net/pokeranalytics/android/ui/fragment/Top10Fragment.kt
  2. 2
      app/src/main/java/net/pokeranalytics/android/ui/view/RowViewType.kt

@ -100,6 +100,7 @@ class Top10Fragment : RealmFragment(), RowRepresentableDataSource, RowRepresenta
private fun initData() { private fun initData() {
this.positiveSessions = getRealm().where<Session>() this.positiveSessions = getRealm().where<Session>()
.isNotNull("startDate")
.isNotNull("endDate") .isNotNull("endDate")
.greaterThan("result.net", 0.0) .greaterThan("result.net", 0.0)
.findAll() .findAll()

@ -615,7 +615,7 @@ enum class RowViewType(private var layoutRes: Int) {
} }
itemView.findViewById<AppCompatTextView>(R.id.sessionDate)?.let { part3 -> itemView.findViewById<AppCompatTextView>(R.id.sessionDate)?.let { part3 ->
part3.text = row.creationDate.longDate() part3.text = row.startDate?.longDate()
} }
} }

Loading…
Cancel
Save