https://kotlinlang.org logo
#compose
Title
# compose
c

Cyril Find

12/22/2020, 4:48 PM
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

Siyamed

12/22/2020, 4:53 PM
It is a known issue
c

Cyril Find

12/22/2020, 4:58 PM
oh ok thanks, is there a workaround for this ?
k

Kshitij Patil

12/22/2020, 4:58 PM
It's really bad in terms of UX, when will it be fixed? Do we have Issuetracker link which I could star?
s

Siyamed

12/22/2020, 4:58 PM
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

Cyril Find

12/22/2020, 5:02 PM
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

David Attias

12/22/2020, 5:03 PM
Yes of course, it's still an alpha 🙂
f

fmasa

01/04/2021, 5:36 PM
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

zoha131

01/04/2021, 6:41 PM
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

fmasa

01/04/2021, 6:42 PM
Yep, but that issue persists even after mentioned patch
s

Siyamed

01/04/2021, 7:55 PM
Can you please create a ticket?
If you can add info about the android version, device, keyboard etc it will help.
s

Sam

01/04/2021, 8:02 PM
@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

Siyamed

01/04/2021, 8:04 PM
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

Sam

01/04/2021, 8:07 PM
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

Siyamed

01/04/2021, 8:07 PM
Anyways, have a nice day.
s

Sam

01/04/2021, 8:08 PM
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

Colton Idle

01/04/2021, 8:15 PM
Sam you're being super rude. Just file a bug.
b

birdsofparadise

01/04/2021, 8:16 PM
"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

Colton Idle

01/04/2021, 8:28 PM
"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

Robert Menke

01/04/2021, 8:55 PM
Happens to me quite a bit as well. I’m sure the team is tracking it somewhere.
same 2
b

birdsofparadise

01/04/2021, 8:56 PM
Hence why @Siyamed asked if you could make a bug report
2
s

Sam

01/04/2021, 8:57 PM
@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

Siyamed

01/04/2021, 9:02 PM
found this one which sounds similar to the problem: https://issuetracker.google.com/issues/170188271
s

Sam

01/04/2021, 9:04 PM
this is exactly the issue @Siyamed thx for finding the report
looks like additional 3 dupes filed as well
a

Adam Powell

01/04/2021, 9:23 PM
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

Sam

01/04/2021, 9:35 PM
@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

Adam Powell

01/04/2021, 9:38 PM
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

Sam

01/07/2021, 7:52 PM
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

Colton Idle

01/07/2021, 8:01 PM
People: Is compose ready for production? Compose team: No. People: hold my beer
❤️ 1
😀 1
s

Sam

01/07/2021, 8:03 PM
@Colton Idle do you have anything worthwhile to contribute or is every comment going to be passive aggressive and deterring
a

Adam Powell

01/07/2021, 8:12 PM
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

Sam

01/07/2021, 8:14 PM
appreciate the clarity @Adam Powell. we will continue to use the partial workaround from @Cyril Find until it’s fixed
👍 2
a

Alexandre Elias [G]

01/12/2021, 1:59 AM
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

Cyril Find

01/12/2021, 9:32 AM
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

Alexandre Elias [G]

01/12/2021, 9:36 PM
@Cyril Find here is the guide for using accompanist with snapshots: https://chrisbanes.github.io/accompanist/using-snapshot-version/
c

Cyril Find

01/12/2021, 10:58 PM
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

Sam

01/12/2021, 10:59 PM
@Alexandre Elias [G] i tried that guide as well, but was also unsuccessful at compiling
2 Views