Apply ktlint formatting

This commit is contained in:
ganfra
2026-09-25 18:50:51 +02:00
parent 971f196d54
commit d8b6694575
2 changed files with 5 additions and 4 deletions
@@ -112,7 +112,7 @@ val TimelineState.selectedCount: Int
fun TimelineState.isSelected(item: TimelineItem): Boolean {
val selection = selectionState as? SelectionState.Active ?: return false
return when(item){
return when (item) {
is TimelineItem.Event -> selection.selectedEventIds.contains(item.eventId)
else -> false
}
@@ -123,7 +123,7 @@ fun TimelineState.isSelected(item: TimelineItem): Boolean {
*/
fun TimelineState.canSelect(item: TimelineItem): Boolean {
val selection = selectionState as? SelectionState.Active ?: return false
return when(item) {
return when (item) {
is TimelineItem.Event -> selection.action.canApplyTo(item)
else -> false
}
@@ -177,8 +177,9 @@ internal fun TimelineItemRow(
if (isSelectionModeActive) {
// In selection mode the whole row toggles selection.
Box(modifier = Modifier.clickable(enabled = selectionData.canBeSelected, role = Role.Checkbox) {
if(selectableEvent != null)
if (selectableEvent != null) {
onContentClick(selectableEvent)
}
})
}
},