Skip to content

Commit

Permalink
fix(SharedWithMe): Fix folder color and categories changes not being …
Browse files Browse the repository at this point in the history
…displayed in SharedWithMeFragment
  • Loading branch information
FabianDevel committed Oct 4, 2024
1 parent 93aab30 commit 07bf9ad
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -472,13 +472,18 @@ open class FileAdapter(
}

override fun areContentsTheSame(oldItem: File, newItem: File): Boolean {

val areCategoriesTheSame = oldItem.categories.size == newItem.categories.size &&
oldItem.categories.containsAll(newItem.categories)

return oldItem.name == newItem.name &&
oldItem.isFavorite == newItem.isFavorite &&
oldItem.isOffline == newItem.isOffline &&
oldItem.color == newItem.color &&
oldItem.lastModifiedAt == newItem.lastModifiedAt &&
oldItem.size == newItem.size
oldItem.size == newItem.size &&
areCategoriesTheSame
}

}

companion object {
Expand Down

0 comments on commit 07bf9ad

Please sign in to comment.