mirror of
https://github.com/FossifyOrg/Launcher.git
synced 2026-02-18 14:47:49 -05:00
Explicitly check if content is equal
This commit is contained in:
@@ -114,5 +114,11 @@ private class AppLauncherDiffCallback : DiffUtil.ItemCallback<AppLauncher>() {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user