From 95ef79e8e06aed6d79a0edb84a08c450b7fda8cb Mon Sep 17 00:00:00 2001 From: Andy Rozman Date: Sun, 10 May 2020 16:11:36 +0100 Subject: [PATCH] - fix for FoodFragment (fixed by Adrian on dev) --- .../androidaps/plugins/general/food/FoodFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/food/FoodFragment.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/food/FoodFragment.kt index c54e383afc..fc8989d36d 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/food/FoodFragment.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/food/FoodFragment.kt @@ -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() }