Fix bug when getting value for date

feature/top10
Aurelien Hubert 7 years ago
parent 807a73ba0c
commit 2160c469a8
  1. 4
      app/src/main/java/net/pokeranalytics/android/model/realm/FilterCondition.kt

@ -174,9 +174,9 @@ open class FilterCondition() : RealmObject() {
*/ */
fun getFilterConditionValue(filterElementRow: FilterElementRow): Any? { fun getFilterConditionValue(filterElementRow: FilterElementRow): Any? {
return when (filterElementRow) { return when (filterElementRow) {
is From, is To -> date is From, is To -> dateValue //TODO: Probably change by 'date' (doesn't work now because the value isn't correctly saved
is PastDays -> values is PastDays -> values
else -> throw PokerAnalyticsException.FilterElementTypeMissing else -> throw PokerAnalyticsException.FilterElementTypeMissing(filterElementRow)
} }
} }

Loading…
Cancel
Save