Status Update
Comments
bi...@gmail.com <bi...@gmail.com> #2
Attached reproducing video of an app using calculateWindowSizeClass
and LocalConfiguration
:
On the second time resizing to be 50%/50% from smaller, the displayed configuration is incorrect.
mc...@google.com <mc...@google.com> #3
When resizing the activity in multi-window mode under those conditions, there are cases where:
the Activity is not recreated Activity.onConfigurationChanged is not called View.onConfigurationChanged is not called
Is this just for 33 / is there a framework bug filed? The amount of broken things in configuration land we already had to workaround in Compose is a bit untenable. It seems like we are missing a lot of test coverage in the platform to avoid these issues hitting us in the future
yi...@googlemail.com <yi...@googlemail.com> #4
In any case this seems like more ammunition for us to push more strongly on 'pure-compose apps should always opt out of configuration changes'
ms...@google.com <ms...@google.com>
[Deleted User] <[Deleted User]> #5
Yes, API 33 introduced this behavior, (internal) platform bug is here:
wo...@gmail.com <wo...@gmail.com> #6
I was incorrect, this is also reproducible on API 32 as well. Not reproducible on API 31.
lo...@gmail.com <lo...@gmail.com> #7
Adam/Louis, how do we want to handle this one? Is there someone on platform who should take this, or since API 32 is already out in the wild maybe this should go to devrel to push more strongly on 'pure-compose apps should always opt out of configuration changes'.
y2...@gmail.com <y2...@gmail.com> #8
ms...@google.com <ms...@google.com> #9
I'm having issues on pre-33 api levels on a pure compose app (has all configChanges added in the manifest file) pared with AppCompatActivity
just for multi language support. When changing the language I'm using AppCompatDelegate.setApplicationLocales(compat)
which calls onConfigurationChanged
on the activity. LocalConfiguration changes to the new configuration on 33+ but remains the same on pre-33. Workaround that i've found is calling if (Build.VERSION.SDK_INT < 33) contentView.dispatchConfigurationChanged(newConfig)
in onConfigurationChanged
. I'm guessing it's a compose issue since activity wise everything works as expected.
bi...@gmail.com <bi...@gmail.com> #10
[Deleted User] <[Deleted User]> #11
Thanks for the heads up, I've tried to find a related issue but only managed to find this one after a brief search.
ms...@google.com <ms...@google.com> #12
Ok
lo...@gmail.com <lo...@gmail.com> #13
Thanks for the heads up, I've tried to find a related issue but only managed to find this one after a brief search.
ms...@google.com <ms...@google.com> #14
In a week, if no major issue is reported.
ms...@google.com <ms...@google.com> #15
This should be available from Bumblebee too now.
lo...@gmail.com <lo...@gmail.com> #16
Great, thank you 😊
Description
Hardware:
2021 Macbook Pro with M1Max
Component used:
Android AVD Manager
Devices/Android versions reproduced on:
Android Studio Arctic Fox | 2020.3.1 Patch 3
Build #AI-203.7717.56.2031.7784292, built on October 1, 2021
Runtime version: 11.0.10+0-b96-7249189 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.0.1
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 10
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: com.thoughtworks.gauge, org.jetbrains.kotlin, org.intellij.plugins.markdown