Status Update
Comments
al...@google.com <al...@google.com>
al...@google.com <al...@google.com> #2
va...@google.com <va...@google.com> #3
al...@google.com <al...@google.com> #4
Can someone clarify?
va...@google.com <va...@google.com> #5
AppCompatDelegate generally works at the Activity level. This is the case with other features such as NightMode as well. This is why it is intended that it does not affect the application context.
I'm re-assigning this to the team to assess the feasibility of extending the feature to alter the application context.
va...@google.com <va...@google.com>
ro...@veeva.com <ro...@veeva.com> #6
al...@google.com <al...@google.com> #7
We recently added a language picker to our alarm app with ~5M downloads. We were enthused when we heard of Android 13's per-app language capabilities and back-porting.
However, in practice this is a half-baked pre-Android 13 implementation. Anyone who implements it is going to have to handle attachBaseContext()
in the Application.kt, Services, and any activity that doesn't extend AppCompatActivity.
If no changes are made, I would at least suggest adding to the attachBaseContext()
for pre-Android 13, and suggested implementation for it - please don't make 1000s of developers write this code :)
Thanks!
al...@google.com <al...@google.com> #8
It is common use case, to be able to get string from application context besides activity & fragment. If pre-13 unable exhibit same behavior as 13 (able to get localized string from application context), then AppCompatDelegate.setApplicationLocales doesn't solve the backward compatible issue.
Due to this limitation, we can only provide such a dynamic language feature, for Android 13 only.
Description
Component used: androidx.core:core-ktx
Version used: 1.8.0-alpha04
Devices/Android versions reproduced on: PIXEL 5/A12
Short Description:
windowInsetsController.isAppearanceLightStatusBars
always returns false.Explanation: When I'm trying to get the default
isAppearanceLightStatusBars
value it always returnsfalse
for the first time for both Light and Dark theme. So I am forced to use deprecated way to determine this value: