Fixed
Status Update
Comments
al...@google.com <al...@google.com>
ca...@google.com <ca...@google.com> #2
The issue is reproducible with core-ktx 1.2.0 and 1.3.0-rc01.
ap...@google.com <ap...@google.com> #3
The Typeface.weight is not a weight of the underlying font file. It is a display style. On older APIs, the display style is adjusted if the Typeface is created from single font. However, after moving to CustomFallbackBuilder, that adjustment is removed since it can crate Typeface from multiple style font files.
Looks like it is good to set display style by ResourcesCompat.getFont for backward compatibility.
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: