diff --git a/app/src/main/java/com/droiddeck/launcher/ui/InputButtonsEditor.kt b/app/src/main/java/com/droiddeck/launcher/ui/InputButtonsEditor.kt index 3ced698ac9..308333cbf3 100644 --- a/app/src/main/java/com/droiddeck/launcher/ui/InputButtonsEditor.kt +++ b/app/src/main/java/com/droiddeck/launcher/ui/InputButtonsEditor.kt @@ -95,7 +95,7 @@ internal fun InputButtonsPane(bindingsId: String, scope: String, baseId: String? }.testTag("input-buttons")) { val wide = maxWidth > 700.dp val boxWidth = maxWidth - var others by remember { mutableStateOf(wide) } + var others by remember { mutableStateOf(false) } val header: @Composable () -> Unit = { Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp)) { Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(4.dp)) { @@ -123,7 +123,7 @@ internal fun InputButtonsPane(bindingsId: String, scope: String, baseId: String? modifier = Modifier.testTag("input-buttons-others")) { others = !others } onMore?.let { SecondaryButton(stringResource(R.string.flow_more_buttons), compact = true, onClick = it) } } - if (others) OtherControls(selected, showTitle = wide) { selected = it } + if (wide || others) OtherControls(selected, showTitle = wide) { selected = it } val summaries = mutableListOf() for (c in changed) summaries += "${c.label} → ${actionLabel(preset.controls[c] ?: InputAction.Native())}" if (summaries.isNotEmpty()) Text(summaries.joinToString(" · "),