Filter / custom field : fix res id issue for place holder

csv
Razmig Sarkissian 7 years ago
parent fbaf8c869e
commit 3e9e61b948
  1. 8
      app/src/main/java/net/pokeranalytics/android/ui/view/rowrepresentable/FilterElementRow.kt

@ -23,7 +23,13 @@ interface FilterElementRow : RowRepresentable {
is QueryCondition.ListOfValues<*> -> {
val valueAsString: String? by map
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
}

Loading…
Cancel
Save