diff --git a/app/src/main/java/io/github/wulkanowy/ui/modules/note/NoteItem.kt b/app/src/main/java/io/github/wulkanowy/ui/modules/note/NoteItem.kt index 97635a2c8..71562fc49 100644 --- a/app/src/main/java/io/github/wulkanowy/ui/modules/note/NoteItem.kt +++ b/app/src/main/java/io/github/wulkanowy/ui/modules/note/NoteItem.kt @@ -46,11 +46,14 @@ class NoteItem(val note: Note) : AbstractFlexibleItem() { other as NoteItem if (note != other.note) return false + if (note.id != other.note.id) return false return true } override fun hashCode(): Int { - return note.hashCode() + var result = note.hashCode() + result = 31 * result + note.id.toInt() + return result } class ViewHolder(val view: View, adapter: FlexibleAdapter<*>) : FlexibleViewHolder(view, adapter), LayoutContainer {