Fixed
Status Update
Comments
al...@google.com <al...@google.com>
vi...@gmail.com <vi...@gmail.com> #2
Hfre...
ca...@google.com <ca...@google.com> #3
This bug has not been updated in the last year. Please reopen if we still need to look into this.
vi...@gmail.com <vi...@gmail.com> #4
Issue is still present, please reopen this ticket.
ca...@google.com <ca...@google.com>
ma...@gmail.com <ma...@gmail.com> #5
How was this fixed? No linked commits/PRs and I don't see anything about this in the docs. Is it possible to dynamically set the postSplashScreenTheme
?
Description
Component used: core-splashscreen
Version used: 1.0.0-alpha01
Devices/Android versions reproduced on: Pixel 4a (Android 11)
We set our app theme programmatically based on user preference, loaded from shared preferences at startup. Pre-Android 12 we called
context.setTheme()
beforesetContentView()
, but with the Splash Screen library we lose control over this sinceSplashScreen.setPostSplashScreenTheme()
reads thepostSplashScreenTheme
attribute directly from the theme. We can add a dark mode implementation invalues-night
but still it only follows the system dark mode and cannot respect an app-level user preference to force a dark theme.It would be nice to have a callback like
setOnExitAnimationListener
or a mutable property onSplashScreen
to allow setting thepostSplashScreenTheme
programmatically.