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.
na...@google.com <na...@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
Version used: 1.11.0-beta02
This is rather a simple lint issue: The methods
PendingIntentCompat#getActivity
andPendingIntentCompat#getService
can returnnull
values if the flag is set toPendingIntent.FLAG_NO_CREATE
whose documentation is as follows:So, the
@NonNull
annotation for return type is simply wrong and should be@Nullable
instead.