Skip to content

Commit

Permalink
[UPDATE] update meal method
Browse files Browse the repository at this point in the history
  • Loading branch information
JaewonKim04 committed Dec 13, 2021
1 parent ee58083 commit 01d5a73
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,9 @@ class MealAdapter(
meals.putAll(mealList)
notifyDataSetChanged()
}

fun updateMeal(startPosition: Int, endPosition: Int, mealList: HashMap<Int, MealItem>) {
meals.putAll(mealList)
notifyItemRangeChanged(startPosition, endPosition)
}
}

0 comments on commit 01d5a73

Please sign in to comment.