Status Update
Comments
se...@google.com <se...@google.com> #2
George, you fixed this issue now right?
po...@gmail.com <po...@gmail.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.
se...@google.com <se...@google.com> #4
We are also seeing this crash in prod after bumping to 1.7+
se...@google.com <se...@google.com> #5
#1 - could you attach a sample if you can reproduce this consistently?
se...@google.com <se...@google.com> #6
The fix I made was for
se...@google.com <se...@google.com> #7
po...@gmail.com <po...@gmail.com> #8
se...@google.com <se...@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)
Description
Jetpack Compose version: 1.7.6
Jetpack Compose component used:
Android Studio Build: Ladybug Feature Drop 2024.2.2
Kotlin version: 2.1.0
Devices/Android versions reproduced on: Phone Emulator (API 34)
Keyboard (i.e. Gboard, Samsung, etc): AOSP Keyboard
If you have Material text
inside the layout with
Modifier.imePadding()
applied to it, and trigger the appearance of the soft keyboard, then text starts to move to the right of the screen.This bug is very similar to this one and is probably related to this code (it was introduced here ).
Screenshots and video attached.