Fixed
Status Update
Comments
al...@google.com <al...@google.com>
ca...@google.com <ca...@google.com> #2
Tentatively, the annotation should be something use-case-specific like @OutlinedNewApi
that allows alternative build systems (e.g. not R8/D8) to make their own decisions. We'll provide a default Proguard configuration for R8, but it's not guaranteed this will work as intended -- outlining is automatic in newer versions, but it may be disabled.
ap...@google.com <ap...@google.com> #3
Just as an FYI, this was enabled in AGP 2 years ago (AGP 7.3 as far as I remember), ag/18426192, so for AGP users it might fine to just remove the rule for @DoNotInline
. I like the @OutlinedNewApi
to make it clear what this is for other consumers to handle it as they see fit.
Description
Component used: SplashScreen compat library (androidx.core:core-splashscreen) Version used: 1.0.0-alpha01 Devices/Android versions reproduced on: Pixel 4a emulator (Android 11), real Pixel 4a (Android 11.
The following code works to slide the splash screen up and fade it out:
See the first video for a demo.
However, if this is combined with Jetpack Compose by also calling
setContent
inonCreate
, the custom animation is no longer played, assetContent
simply replaces the view when it is finished loading. See the second video for a demo.The alternative would be to call
setContent
in the callback ofwithEndAction
, but this is suboptimal. See the third video for a demo.If this is a bug in the library, we would appreciate if you could attach: