gaiuszzang / ComposeIssueSampleApp

0 stars 0 forks source link

When enable configChanges in Activity, Composable cannot receive any touch events from Compose BOM 2023.08.00 or higher #1

Open gaiuszzang opened 1 year ago

gaiuszzang commented 1 year ago

Jetpack Compose version: Compose BOM 2023.08.00 or higher Jetpack Compose component used: Any Composable Android Studio Build: Android Studio Giraffe | 2022.3.1 Kotlin version: 1.8.10

Steps to Reproduce or Code Sample to Reproduce:

  1. Set the configChanges to AndroidManifest.xml for prevent the activity from being recreated when the configuration changes.

    • ex) android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale|layoutDirection|density"
  2. Implement the Compose UI in Activity with Compose BOM 2023.08.00 or higher version

  3. Execute the App

  4. Open in popup-view (freeform mode)

  5. Touch events are not delivered to any composables

PS : Works well in Compose BOM 2023.06.01 and lower versions.

Compse BOM 2023.06.01 or lower version

Compose BOM 2023.08.00 or higher version

gaiuszzang commented 1 year ago

Report : https://issuetracker.google.com/issues/309522037

gaiuszzang commented 1 year ago

https://issuetracker.google.com/issues/309326720

gaiuszzang commented 1 year ago

Thread app https://github.com/gaiuszzang/ComposeIssueSampleApp/assets/15318053/98a9bb4a-a5fe-4a50-8151-5a594c3a49af

Medium app https://github.com/gaiuszzang/ComposeIssueSampleApp/assets/15318053/059e7085-961a-417a-b844-382520ac3aff