Status Update
Comments
be...@google.com <be...@google.com> #2
Can you please double check the link to your git repository for the repro? It leads to a 404
ct...@atlassian.com <ct...@atlassian.com> #3
ra...@google.com <ra...@google.com> #4
After looking at the code, what surprises me is that it works on Android 12.
The correct way to achieve this is to never return false in the KeepOnScreenCondition
. Otherwise, the time between the condition being false and the new activity being visible will let the splash screen activity appear
The condition is evaluated for the current view tree only, so as soon as you start the next activity, it will be ignored and the splash screen will be removed.
ct...@atlassian.com <ct...@atlassian.com> #5
I'm marking this as working as intended, but please let me know if it doesn't work.
ct...@atlassian.com <ct...@atlassian.com> #6
Even with the bandaid workaround we saw 1% of sessions in prod crashing with the second trace from the OP and decided to revert compose ui back to the stable BoM. Unfortunately that introduces this focus bug
Description
Jetpack Compose version: androidx.compose.ui:ui:1.8.0-alpha02
Jetpack Compose component(s) used: ui, viewinterop
Android Studio Build: 2024.2.2
Kotlin version: 2.1.0
Steps to Reproduce or Code Sample to Reproduce:
Working on a simple repro for this issue, but it seems to be related to giving focus to an EditText in an AndroidView under certain circumstances and seems liable to happen on any device.
We shipped androidx.compose.ui:ui:1.8.0-alpha08 in our latest beta to pick up some AndroidView bug fixes and are now seeing the following crashes affecting a very significant ~3% of our users so far.
The repro is very elusive, but narrowed it down to androidx.compose.ui:ui:1.8.0-alpha02 introducing the issue - very likely this change based on the tracehttps://android.googlesource.com/platform/frameworks/support/+/58377bb3416cc24d342dd4e5d32e4a27247734e4 .
Would greatly appreciate any suggested workarounds or fixes 🙏
Stack trace (if applicable):
and also