0
0
mirror of https://github.com/florisboard/florisboard.git synced 2024-09-19 19:42:20 +02:00

Change extended actions toggle so it closes actions overflow (#2035)

This commit is contained in:
Patrick Goldinger 2022-08-30 18:06:24 +02:00
parent 94b62b7224
commit ae2a1db1ef
No known key found for this signature in database
GPG Key ID: 533467C3DC7B9262

View File

@ -222,7 +222,12 @@ private fun SmartbarMainRow(modifier: Modifier = Modifier) {
@Composable
fun ExtendedActionsToggle() {
IconButton(
onClick = { prefs.smartbar.extendedActionsExpanded.set(!extendedActionsExpanded) },
onClick = {
if (/* was */ extendedActionsExpanded) {
keyboardManager.activeState.isActionsOverflowVisible = false
}
prefs.smartbar.extendedActionsExpanded.set(!extendedActionsExpanded)
},
) {
Box(
modifier = Modifier