Skip to content

Commit

Permalink
fix: categories activity crash
Browse files Browse the repository at this point in the history
  • Loading branch information
VaiTon committed May 21, 2021
1 parent a3c2e76 commit 8034ee0
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -9,8 +9,10 @@ import openfoodfacts.github.scrachx.openfood.models.entities.category.CategoryNa
* Created by Abdelali Eramli on 27/12/2017.
*/
object RecyclerBindingAdapter {

@JvmStatic
@BindingAdapter("categories")
fun setStations(recyclerView: RecyclerView, categoryList: List<CategoryName>) {
recyclerView.adapter = CategoryListRecyclerAdapter(categoryList)
fun RecyclerView.setStations(categoryList: List<CategoryName>) {
adapter = CategoryListRecyclerAdapter(categoryList)
}
}

0 comments on commit 8034ee0

Please sign in to comment.