Fixed crash when opening quick actions dialog

This commit is contained in:
Abdelilah El Aissaoui 2023-08-23 15:48:20 +02:00
parent f017409db8
commit 1a523d04ef
No known key found for this signature in database
GPG key ID: 7587FC860F594869

View file

@ -50,10 +50,6 @@ fun QuickActionsDialog(
mutableStateOf(0)
}
LaunchedEffect(Unit) {
textFieldFocusRequester.requestFocus()
}
MaterialDialog(
onCloseRequested = onClose,
background = MaterialTheme.colors.surface,
@ -118,6 +114,10 @@ fun QuickActionsDialog(
}
}
}
LaunchedEffect(Unit) {
textFieldFocusRequester.requestFocus()
}
}
}
}