Skip to content

Commit

Permalink
chore: small fixes in code (#5057)
Browse files Browse the repository at this point in the history
  • Loading branch information
nishkarsh800 authored Aug 4, 2023
1 parent 428d3d0 commit cfa3b9c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ class ProductListsAdapter : RecyclerView.Adapter<ProductListsAdapter.ViewHolder>
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<ProductLists>) {
lists = newList
fun replaceWith(newProductList: MutableList<ProductLists>) {
lists = newProductList
}

class ViewHolder(binding: YourProductListsItemBinding) : RecyclerView.ViewHolder(binding.root) {
Expand Down

0 comments on commit cfa3b9c

Please sign in to comment.