Assigned
Status Update
Comments
al...@google.com <al...@google.com> #2
Maybe also something aline the lines of:
inline fun <reified T> Bundle.parcelable(key: String): T? = when {
SDK_INT >= 33 -> getParcelable(key, T::class.java)
else -> @Suppress("DEPRECATION") getParcelable(key) as? T
}
al...@google.com <al...@google.com> #3
Over to platform owner for consideration.
js...@google.com <js...@google.com>
se...@google.com <se...@google.com> #4
Yeah, we want this, but with
ap...@google.com <ap...@google.com> #5
also bugs me about Parcel.readParcelable
. if ya gonna nag me in a gazilion places through my code at least give me a nice way to resolve it. these 'blah is deprecated' msgs for code that works on my minSdkVersion just kill me. sticking an if or a supress on every second line of my code is just ...
a little comment about the above kotlin inline fun, I need both kotlin and java solution.
se...@google.com <se...@google.com>
ap...@google.com <ap...@google.com> #6
Re #4, I think Google should offer this even if it's only going to work on U+ because right now the original APIs are deprecated and the replacements are not safe to use.
Description
The following lint check is baseline suppressed in your project. Please remove all instances of this suppression from
compose/ui/ui-text-google-fonts/lint-baseline.xml
and address the associated issues before your next stable release.1 instance(s) of
RestrictedApiAndroidX
FontsContractCompat.requestFont can only be called from within the same library (androidx.core:core)
Found in
src/main/java/androidx/compose/ui/text/googlefonts/GoogleFont.kt
at line 0: