Merge pull request #2635 from MilosKozak/AdrianLxM-patch-1

Kotlin interface not stricter than Java superclass
This commit is contained in:
Milos Kozak 2020-05-10 19:11:03 +02:00 committed by GitHub
commit 09a9c963ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,7 @@ class FoodFragment : DaggerFragment() {
filterData() filterData()
} }
food_category.onItemSelectedListener = object : AdapterView.OnItemSelectedListener { 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() fillSubcategories()
filterData() filterData()
} }
@ -69,7 +69,7 @@ class FoodFragment : DaggerFragment() {
} }
} }
food_subcategory.setOnItemSelectedListener(object : AdapterView.OnItemSelectedListener { 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() filterData()
} }
@ -210,4 +210,4 @@ class FoodFragment : DaggerFragment() {
} }
} }
} }
} }