- fix for FoodFragment (fixed by Adrian on dev)

This commit is contained in:
Andy Rozman 2020-05-10 16:11:36 +01:00
parent 80f5b3cf4b
commit 95ef79e8e0

View file

@ -58,7 +58,7 @@ class FoodFragment : DaggerFragment() {
filterData()
}
food_category.onItemSelectedListener = object : AdapterView.OnItemSelectedListener {
override fun onItemSelected(parent: AdapterView<*>?, view: View, position: Int, id: Long) {
override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) {
fillSubcategories()
filterData()
}
@ -69,7 +69,7 @@ class FoodFragment : DaggerFragment() {
}
}
food_subcategory.setOnItemSelectedListener(object : AdapterView.OnItemSelectedListener {
override fun onItemSelected(parent: AdapterView<*>?, view: View, position: Int, id: Long) {
override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) {
filterData()
}