Status Update
Comments
je...@google.com <je...@google.com>
ra...@google.com <ra...@google.com>
se...@google.com <se...@google.com> #2
This is likely a timing issue, due to requesting focus during popup creation.
As a workaround until it's fixed, you can ensure that the keyboard is requested a short time after.
As a workaround until it's fixed, you can ensure that the keyboard is requested a short time after.
kl...@google.com <kl...@google.com> #3
What version of Android did you observe this on?
I'm seeing the keyboard show up as expected on the first try on both 28 and 30, but on 30 the keyboard doesn't show on subsequent invocations until I restart the app. On 28 it works consistently.
I also tried putting the LaunchedEffect
in the AlertDialog
, but that didn't make any difference.
[Deleted User] <[Deleted User]> #4
I'm testing on a Samsung Galaxy S20 with Android 11 (API level 30). I observe the same behavior - on the first opening of the dialog the keyboard appears, on the subsequent openings it doesn't appear anymore.
kl...@google.com <kl...@google.com> #5
I wonder if this is related to the issue described in
kl...@google.com <kl...@google.com> #6
Also I think this is a duplicate of
Description
When an
AlertDialog
has aTextField
and requests focus viafocusRequester.requestFocus()
then the TextField is focused properly, but the keyboard doesn't appear.Also adding
LocalSoftwareKeyboardController.current?.show()
to theLaunchedEffect
block doesn't fix the problem.Jetpack Compose 1.0.5