Marcin Wisniowski
05/23/2022, 9:58 PM1.1.0-beta03
, Kotlin 1.5.31
) to (Compose Compiler 1.1.0-beta04
, Kotlin 1.6.0
) I am having a weird issue where after navigating back to a Fragment the Fragment's UI (View-based, not Compose) is no longer responsive. Single-activity app with navigation component, issue appears with any View-based Fragment after navigating back to it (fine on Compose Fragments). I am having a hard time debugging this, or seeing why would updating the Compose Compiler affect non-Compose Fragments, did anyone see a similar issue?Berkeli Alashov
05/23/2022, 10:32 PM1.1.0-beta03
and kotlin to 1.5.31
(I was on 1.2.0-beta01
before).
It's working as expected on 1.1.0-beta03
and this weird behavior starts happening with 1.1.0-beta04
We need to find a simple reproducible example..Marcin Wisniowski
05/23/2022, 10:38 PMbuildFeatures { compose true }
, even with no Compose usage whatsoever.Berkeli Alashov
05/23/2022, 10:40 PMAdam Powell
05/24/2022, 1:03 PMBerkeli Alashov
05/24/2022, 6:37 PM./gradlew app:dependencies
before and after changing 1.1.0-beta03
to beta04
+ kotlin version, but it doesn't seem to give any useful info. Here's the diff: https://pastebin.com/FcRjPa5VMarcin Wisniowski
05/24/2022, 6:43 PMbuildFeatures { compose true }
does. There is nothing to diff in that case: just enabling the compose build feature triggers the bug.findViewById
the bug is gone. Of course this doesn't answer why it happens, but it seems the Compose Compiler breaks something in Kotlin synthetics for views.
High time to migrate away I guess, although they were supposed to work until Kotlin 1.8, and I was hoping to skip View Binding and migrate straight to Compose by the time Kotlin 1.8 comes out.
@Berkeli Alashov Can you confirm the issue is gone for you if you remove Kotlin synthetics from an affected Fragment/screen?Berkeli Alashov
05/24/2022, 7:10 PMMarcin Wisniowski
05/24/2022, 7:12 PMBerkeli Alashov
05/24/2022, 7:28 PMkotlinx.android.synthetic
..)
I guess now we can create reproducible example & report the bug.Marcin Wisniowski
05/24/2022, 7:29 PMBerkeli Alashov
05/24/2022, 7:30 PMMarcin Wisniowski
05/30/2022, 7:25 PMBerkeli Alashov
05/30/2022, 7:29 PMmyView
to binding.myView
Marcin Wisniowski
05/30/2022, 7:31 PM