From 3e9e61b9483812290d4716a65376f556252737f9 Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Mon, 10 Jun 2019 14:15:42 +0200 Subject: [PATCH] Filter / custom field : fix res id issue for place holder --- .../android/ui/view/rowrepresentable/FilterElementRow.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/net/pokeranalytics/android/ui/view/rowrepresentable/FilterElementRow.kt b/app/src/main/java/net/pokeranalytics/android/ui/view/rowrepresentable/FilterElementRow.kt index 9829f9ee..43860b3a 100644 --- a/app/src/main/java/net/pokeranalytics/android/ui/view/rowrepresentable/FilterElementRow.kt +++ b/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 }