When using `TextField` , I randomly get cases wher...
# compose
c
When using
TextField
, I randomly get cases where the keyboard doesn’t come up, is it a know issue ? do I need to do something special ?
👀 5
s
It is a known issue
c
oh ok thanks, is there a workaround for this ?
k
It's really bad in terms of UX, when will it be fixed? Do we have Issuetracker link which I could star?
s
I do not know unfortunately
There is an issue but i am on the phone would be hard to find it.
It is prioritized though
I'm waiting for it as well, it is very blocking for my project...
c
yeah I mean that’s what happens when you live on the edge of the alpha 😅 but thanks everyone, glad to know it’s coming up
d
Yes of course, it's still an alpha 🙂
f
Actually it seems that https://android-review.googlesource.com/c/platform/frameworks/support/+/1456460/ was shipped in Alpha 09, right? So it still does not fix the issue.
z
I think this is another issue. It is more related to switch focus between two TextField. But my issue with keyboard opening for the first time.
f
Yep, but that issue persists even after mentioned patch
s
Can you please create a ticket?
If you can add info about the android version, device, keyboard etc it will help.
s
@Siyamed does the team not know about this bug? we’ve had reports of the problem on every device from Samsung A20 on Android 10 to my Pixel 4a on Android 11
s
I dont follow, is there a ticket that i am not aware of?
The keyboard not appearing sometimes is something i have seen, but not reported or the severity set. As mentioned at the beginning of this thread it will be fixed.
s
this issue has been around for months, it happens literally 50% of the time i am building the app, it would shock me if the dev team does not know about such a huge problem. users literally have to restart their devices to get the keyboard to show up
s
Anyways, have a nice day.
s
what could be a bigger problem than getting the keyboard to show up?
👎 3
hmm okay, i’m not sure what warranted that type of a response. are you a dev on compose?
c
Sam you're being super rude. Just file a bug.
b
"one issue the prevents apps from shipping -- keyboards that don’t open is an egregious violation of user experience and expectations" Sam its called an Alpha
❤️ 3
7
c
"the compose devs + evangelists (cc @Leland Richardson [G]) should know this is the number one issue the prevents apps from shipping -- keyboards that don't open is an egregious violation of user experience and expectations" 😂 I can't even enable compose in my project due to a bug in AGP. I DEMAND that it be fixed immediately!
r
Happens to me quite a bit as well. I’m sure the team is tracking it somewhere.
same 2
b
Hence why @Siyamed asked if you could make a bug report
2
s
@Robert Menke i think that’s precisely the disconnect here, it’s not being tracked. for the record i didn’t write a bug report because everyone said this issue was tracking it
s
found this one which sounds similar to the problem: https://issuetracker.google.com/issues/170188271
s
this is exactly the issue @Siyamed thx for finding the report
looks like additional 3 dupes filed as well
a
A factor in this is that several of the lower-level subsystems that need to work together for soft keyboard operation in text fields have been undergoing major rework/refactoring over the past several months. What looks like a lack of movement on this is due to the work happening at those lower levels, so that we can fix it (hopefully) once, rather than patch what is there currently, possibly creating new dependencies on older implementation details we are trying to turn down in the process.
👏 3
Thank you for your patience 🙂
s
@Adam Powell that’s really helpful information, thanks for sharing. in the meantime it would be great to know what your best hack is to mitigate the problem until the refactoring is finalized. @Cyril Find came up with adding clickable to the parent
Row
and calling
requestor.requestFocus()
but is there a better way?
a
not sure off the top of my head, I'm afraid. Us googlers are on a company holiday today so our answers are likely to be a bit hand-wavey until we all get back to work officially later this week
s
Hi @Adam Powell and @Siyamed, circling back around here — is there a recommended workaround? If not, where will a workaround be posted when one becomes available?
c
People: Is compose ready for production? Compose team: No. People: hold my beer
❤️ 1
😀 1
s
@Colton Idle do you have anything worthwhile to contribute or is every comment going to be passive aggressive and deterring
a
folks, the sniping isn't necessary. We'll let you all know when there's more to share; ideally with a, "fixed" note in some release notes. 🙂
2
s
appreciate the clarity @Adam Powell. we will continue to use the partial workaround from @Cyril Find until it’s fixed
👍 2
a
A fix landed for https://issuetracker.google.com/issues/170188271 . It will be present in alpha11 (and it's already present in today's http://androidx.dev snapshot builds if you need it faster). Please let us know if you notice a remaining keyboard open/dismiss bug that we failed to cover with this fix
👏 2
🎉 8
c
Cool ! Ok i’m going closer to the edge, let’s try snapshots, hold my coffee 😁
@Alexandre Elias [G] Ok so I commented out accompanist-coil stuff because I couldn’t make it compile with the snapshot build but seems like it works ! 👍 👏
👍 2
a
@Cyril Find here is the guide for using accompanist with snapshots: https://chrisbanes.github.io/accompanist/using-snapshot-version/
c
hey @Alexandre Elias [G] thanks I saw that but I still didn’t make it work 😅 but it’s fine I just tested the fix, I can wait for alpha11 for now 🙂
s
@Alexandre Elias [G] i tried that guide as well, but was also unsuccessful at compiling