Fixed
Status Update
Comments
al...@google.com <al...@google.com>
ap...@google.com <ap...@google.com> #2
The issue is reproducible with core-ktx 1.2.0 and 1.3.0-rc01.
pr...@google.com <pr...@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
AndroidX core features the
androidx.core.os.CancellationSignal
type which backported theandroid.os.CancellationSignal
type to API levels prior to 16. Now that the minimum supported API level of the AndroidX libraries is 19, this type can be deprecated.However, it's not just that simple because this type is used in the public API elsewhere. Those usages should be migrated to accept the framework version before the AndroidX type is deprecated.
Fromhttps://android-review.googlesource.com/c/platform/frameworks/support/+/2816836/comment/2fce6759_bb364691/