Merge branch 'master' of gitlab.com:stax-river/poker-analytics

csv
Laurent 7 years ago
commit 43289b4908
  1. 8
      app/src/main/java/net/pokeranalytics/android/ui/view/rowrepresentable/FilterElementRow.kt

@ -23,7 +23,13 @@ interface FilterElementRow : RowRepresentable {
is QueryCondition.ListOfValues<*> -> { is QueryCondition.ListOfValues<*> -> {
val valueAsString: String? by map val valueAsString: String? by map
val hint = when (this.operator) { val hint = when (this.operator) {
QueryCondition.Operator.MORE, QueryCondition.Operator.LESS -> this.filterSectionRow.resId QueryCondition.Operator.MORE, QueryCondition.Operator.LESS -> {
when (this) {
is QueryCondition.CustomFieldNumberQuery -> R.string.value
is QueryCondition.CustomFieldAmountQuery -> R.string.amount
else -> this.filterSectionRow.resId
}
}
else -> this.resId else -> this.resId
} }

Loading…
Cancel
Save