|
|
|
@ -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) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|