diff --git a/app/src/main/java/gq/kirmanak/mealient/ui/recipes/RecipesPagingAdapter.kt b/app/src/main/java/gq/kirmanak/mealient/ui/recipes/RecipesPagingAdapter.kt index e36621a..6dd858b 100644 --- a/app/src/main/java/gq/kirmanak/mealient/ui/recipes/RecipesPagingAdapter.kt +++ b/app/src/main/java/gq/kirmanak/mealient/ui/recipes/RecipesPagingAdapter.kt @@ -42,11 +42,13 @@ class RecipesPagingAdapter private constructor( private object RecipeDiffCallback : DiffUtil.ItemCallback() { override fun areItemsTheSame( - oldItem: RecipeSummaryEntity, newItem: RecipeSummaryEntity + oldItem: RecipeSummaryEntity, + newItem: RecipeSummaryEntity, ): Boolean = oldItem.remoteId == newItem.remoteId override fun areContentsTheSame( - oldItem: RecipeSummaryEntity, newItem: RecipeSummaryEntity - ): Boolean = oldItem.name == newItem.name && oldItem.slug == newItem.slug + oldItem: RecipeSummaryEntity, + newItem: RecipeSummaryEntity, + ): Boolean = oldItem == newItem } }