diff --git a/app/src/main/kotlin/org/fossify/launcher/adapters/LaunchersAdapter.kt b/app/src/main/kotlin/org/fossify/launcher/adapters/LaunchersAdapter.kt index 2209403..b14dba3 100644 --- a/app/src/main/kotlin/org/fossify/launcher/adapters/LaunchersAdapter.kt +++ b/app/src/main/kotlin/org/fossify/launcher/adapters/LaunchersAdapter.kt @@ -114,5 +114,11 @@ private class AppLauncherDiffCallback : DiffUtil.ItemCallback() { return oldItem.getLauncherIdentifier().hashCode().toLong() == newItem.getLauncherIdentifier().hashCode().toLong() } - override fun areContentsTheSame(oldItem: AppLauncher, newItem: AppLauncher) = oldItem == newItem + override fun areContentsTheSame(oldItem: AppLauncher, newItem: AppLauncher): Boolean { + return oldItem.title == newItem.title && + oldItem.order == newItem.order && + oldItem.thumbnailColor == newItem.thumbnailColor && + oldItem.drawable != null && + newItem.drawable != null + } }