parent
bab856bce2
commit
8b8f725499
@ -37,8 +37,10 @@ class LogItemRvItem(
|
|||||||
|
|
||||||
fun toggle() = isExpanded.toggle()
|
fun toggle() = isExpanded.toggle()
|
||||||
|
|
||||||
override fun contentSameAs(other: LogItemRvItem): Boolean = items
|
override fun contentSameAs(other: LogItemRvItem): Boolean {
|
||||||
.any { !other.items.contains(it) }
|
if (items.size != other.items.size) return false
|
||||||
|
return items.all { it in other.items }
|
||||||
|
}
|
||||||
|
|
||||||
override fun itemSameAs(other: LogItemRvItem): Boolean = date == other.date
|
override fun itemSameAs(other: LogItemRvItem): Boolean = date == other.date
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user