Status Update
Comments
ja...@gmail.com <ja...@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.
mi...@gmail.com <mi...@gmail.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
pa...@gmail.com <pa...@gmail.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'
br...@gmail.com <br...@gmail.com> #5
Yes, API 33 introduced this behavior, (internal) platform bug is here:
ja...@gmail.com <ja...@gmail.com> #6
I was incorrect, this is also reproducible on API 32 as well. Not reproducible on API 31.
ra...@gmail.com <ra...@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'.
al...@android.com <al...@android.com>
ma...@gmail.com <ma...@gmail.com> #8
[Deleted User] <[Deleted User]> #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.
mi...@gmail.com <mi...@gmail.com> #10
LocalConfiguration
but a separate issue.
[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.
[Deleted User] <[Deleted User]> #12
Ok
[Deleted User] <[Deleted User]> #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.
bo...@gmail.com <bo...@gmail.com> #14
[Deleted User] <[Deleted User]> #15
ma...@gmail.com <ma...@gmail.com> #16
ja...@gmail.com <ja...@gmail.com> #17
mo...@gmail.com <mo...@gmail.com> #18
m....@gmail.com <m....@gmail.com> #19
de...@gmail.com <de...@gmail.com> #20
me...@gmail.com <me...@gmail.com> #21
kr...@gmail.com <kr...@gmail.com> #22
su...@gmail.com <su...@gmail.com> #23
ar...@connectmedica.com <ar...@connectmedica.com> #24
ia...@gmail.com <ia...@gmail.com> #25
ke...@pinxterapp.com <ke...@pinxterapp.com> #26
ni...@google.com <ni...@google.com>
[Deleted User] <[Deleted User]> #27
+1 for this feature.
ja...@gmail.com <ja...@gmail.com> #28
[Deleted User] <[Deleted User]> #29
ru...@gmail.com <ru...@gmail.com> #30
sa...@gmail.com <sa...@gmail.com> #31
ช่วยแก้ไข browser ให้ผมหน่อยครับ
Description
However, for my app, the derived colors for both are noticeably different than the rest of my application. While the functionality of custom tabs is winning over the designer, they are not happy with the visual result.
Therefore, I'd like to be able to specify the status bar color to use with the custom tab (ie the primaryColorDark from my application). Seems reasonable if the developer doesn't specify a status bar color it uses the derived color as it does today.
As well I'd like to control the icon tint in the tool bar for the default "close" and "overflow" icons. While, specifying my own bitmap works around the "close" icon, the overflow icon tint is still controlled by the custom tab and may not match the overall theme.