fix issue with filter UI for title check type

feature/top10
Razmig Sarkissian 7 years ago
parent 2cb317ece3
commit 9a5f343626
  1. 15
      app/src/main/java/net/pokeranalytics/android/ui/view/rowrepresentable/FilterElementRow.kt

@ -20,25 +20,12 @@ interface FilterElementRow : RowRepresentable {
RowRepresentableEditDescriptor(minutes, R.string.minute, inputType = InputType.TYPE_CLASS_NUMBER) RowRepresentableEditDescriptor(minutes, R.string.minute, inputType = InputType.TYPE_CLASS_NUMBER)
) )
} }
is QueryCondition.SingleInt -> { is QueryCondition.ListOfValues<*> -> {
val valueAsString: String? by map val valueAsString: String? by map
arrayListOf( arrayListOf(
RowRepresentableEditDescriptor(valueAsString, this.resId, inputType = InputType.TYPE_CLASS_NUMBER) RowRepresentableEditDescriptor(valueAsString, this.resId, inputType = InputType.TYPE_CLASS_NUMBER)
) )
} }
//TODO: Refactor that
is QueryCondition.ListOfDouble -> {
val amount: String? by map
arrayListOf(
RowRepresentableEditDescriptor(amount, R.string.amount, inputType = InputType.TYPE_CLASS_NUMBER)
)
}
is QueryCondition.ListOfInt -> {
val amount: String? by map
arrayListOf(
RowRepresentableEditDescriptor(amount, R.string.amount, inputType = InputType.TYPE_CLASS_NUMBER)
)
}
else -> super.editingDescriptors(map) else -> super.editingDescriptors(map)
} }
} }

Loading…
Cancel
Save