Status Update
Comments
mo...@google.com <mo...@google.com>
gr...@google.com <gr...@google.com> #2
George, you fixed this issue now right?
gr...@google.com <gr...@google.com> #3
I see the release note in compose-ui 1.7.3:
Fixed exception thrown when the IME is active on an external View and the Next action is used to enter focus on the ComposeView. The clearFocus() behavior aligns with View behavior on API < 28, where clearFocus() can cause the default View to be focused.
However, we can still reproduce this crash with BOM 2024.09.03 and compose-ui 1.7.3.
ap...@google.com <ap...@google.com> #4
We are also seeing this crash in prod after bumping to 1.7+
gr...@google.com <gr...@google.com> #5
#1 - could you attach a sample if you can reproduce this consistently?
gr...@google.com <gr...@google.com> #6
The fix I made was for
gr...@google.com <gr...@google.com> #7
ap...@google.com <ap...@google.com> #8
gr...@google.com <gr...@google.com>
bu...@google.com <bu...@google.com> #9
We were never able to figure out a simple repro case, sorry. Maybe @feenixspz has one?
(our workaround was to try/catch in our base Activity's dispatchKeyEvent
and return false if something throws)
gr...@google.com <gr...@google.com> #10
Please check my example. I reproduced the crash in my pixel 6a 14. Click the edit text and then click the keyboard done.
bu...@google.com <bu...@google.com> #11
George, would you mind checking the example in
gr...@google.com <gr...@google.com> #12
si...@gmail.com <si...@gmail.com> #13
I am able to repro with the given project.
gr...@google.com <gr...@google.com> #14
The problem is that ComposeView assumes that its contents are focusable. As a work-around, I think that if you call view.focusable = false
after instantiation, you won't have this problem.
Description
Jetpack Compose version: 1.7.5
Jetpack Compose component(s) used: foundation
Steps to Reproduce or Code Sample to Reproduce:
TalkBack TreeDebug logs:
Version 1.6.8 (BOM 2024.08.00)
Notice last line - "Important warning" is present
Version 1.7.5 (BOM 2024.10.01)
There "Important warning" is missing
Version 1.8.0-alpha05 (BOM-alpha 2024.10.01)
There "Important warning" is back again
It seems like this regression was added in Icd0becab6818712ab7fa6f3abe83f441a841af5e and fixed in I531e7bad97cda327974696686357a9e56430a6a6 (see TextAnnotatedStringNode.shouldClearDescendantSemantics). Although it is fixed in 1.8-alpha, version 1.7 is broken, preventing our app from updating.