Fixed log items not being refreshed

Close #2079
This commit is contained in:
Viktor De Pasquale 2019-11-15 21:28:19 +01:00 committed by John Wu
parent bab856bce2
commit 8b8f725499

View File

@ -37,8 +37,10 @@ class LogItemRvItem(
fun toggle() = isExpanded.toggle()
override fun contentSameAs(other: LogItemRvItem): Boolean = items
.any { !other.items.contains(it) }
override fun contentSameAs(other: LogItemRvItem): Boolean {
if (items.size != other.items.size) return false
return items.all { it in other.items }
}
override fun itemSameAs(other: LogItemRvItem): Boolean = date == other.date
}