From cfa3b9c3c81eab7f2f920cfc8feff57d3cfcd98a Mon Sep 17 00:00:00 2001 From: NISHKARSH SAXENA <94742536+nishkarsh800@users.noreply.github.com> Date: Fri, 4 Aug 2023 20:47:09 +0530 Subject: [PATCH] chore: small fixes in code (#5057) --- .../openfood/features/productlists/ProductListsAdapter.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/productlists/ProductListsAdapter.kt b/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/productlists/ProductListsAdapter.kt index 1c0e01417a5d..e9fc3d33c1d5 100644 --- a/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/productlists/ProductListsAdapter.kt +++ b/app/src/main/java/openfoodfacts/github/scrachx/openfood/features/productlists/ProductListsAdapter.kt @@ -28,15 +28,15 @@ class ProductListsAdapter : RecyclerView.Adapter override fun getItemCount() = lists.size fun add(productList: ProductLists) { - lists = lists + productList + lists += productList } fun remove(data: ProductLists) { - lists = lists - data + lists -= data } - fun replaceWith(newList: MutableList) { - lists = newList + fun replaceWith(newProductList: MutableList) { + lists = newProductList } class ViewHolder(binding: YourProductListsItemBinding) : RecyclerView.ViewHolder(binding.root) {