Skip to content

Commit fe23247

Browse files
committed
Remove accidental newlines
1 parent 9492be2 commit fe23247

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

compose-action-menu/src/commonMain/kotlin/nl/jacobras/composeactionmenu/ActionMenu.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ private fun splitItems(items: List<ActionItem>, maxNumberOfIcons: Int): Pair<Lis
120120
iconItems.add(item)
121121
availableIconSpaces--
122122
}
123-
124123
ShowAsActionMode.IF_ROOM -> {
125124
if (availableIconSpaces > reservedSpaces) {
126125
iconItems.add(item)
@@ -129,7 +128,6 @@ private fun splitItems(items: List<ActionItem>, maxNumberOfIcons: Int): Pair<Lis
129128
overflowItems.add(item)
130129
}
131130
}
132-
133131
ShowAsActionMode.NEVER -> {
134132
overflowItems.add(item)
135133
}

compose-action-menu/src/commonMain/kotlin/nl/jacobras/composeactionmenu/OverflowActionItem.kt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,16 @@ internal fun OverflowActionItem(
3232
hideTopMenu()
3333
showSubMenu(item.childOptions)
3434
}
35-
3635
is CheckableActionItem -> {
3736
hideTopMenu()
3837
hideSubMenu()
3938
item.onClick(item.key)
4039
}
41-
4240
is RadioActionItem -> {
4341
hideTopMenu()
4442
hideSubMenu()
4543
item.onClick(item.key)
4644
}
47-
4845
is RegularActionItem -> {
4946
hideTopMenu()
5047
hideSubMenu()
@@ -87,11 +84,9 @@ internal fun OverflowActionItem(
8784
is CheckableActionItem -> {
8885
Checkbox(checked = item.isChecked, onCheckedChange = { onClick() })
8986
}
90-
9187
is RadioActionItem -> {
9288
RadioButton(selected = item.isSelected, onClick = { onClick() })
9389
}
94-
9590
is GroupActionItem -> {
9691
Icon(
9792
painter = rememberVectorPainter(Icons.Filled.OverflowRight),
@@ -100,9 +95,7 @@ internal fun OverflowActionItem(
10095
)
10196
Spacer(modifier = Modifier.width(8.dp))
10297
}
103-
10498
else -> Unit
10599
}
106100
}
107-
}
108-
101+
}

0 commit comments

Comments
 (0)