Fix code quality

This commit is contained in:
Benoit Marty 2019-07-02 21:17:41 +02:00
parent 77fd7cd33c
commit 6c66ab1568

View File

@ -299,10 +299,10 @@ class TimelineEventController @Inject constructor(private val dateFormatter: Tim
collapsedEventIds.removeAll(mergedEventIds) collapsedEventIds.removeAll(mergedEventIds)
} }
val mergeId = mergedEventIds.joinToString(separator = "_") { it } val mergeId = mergedEventIds.joinToString(separator = "_") { it }
(MergedHeaderItem(isCollapsed, mergeId, mergedData, avatarRenderer) { MergedHeaderItem(isCollapsed, mergeId, mergedData, avatarRenderer) {
mergeItemCollapseStates[event.localId] = it mergeItemCollapseStates[event.localId] = it
requestModelBuild() requestModelBuild()
}).also { }.also {
it.setOnVisibilityStateChanged(MergedTimelineEventVisibilityStateChangedListener(callback, mergedEvents)) it.setOnVisibilityStateChanged(MergedTimelineEventVisibilityStateChangedListener(callback, mergedEvents))
} }
} }