Fixed
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
}
ak...@google.com <ak...@google.com>
ch...@google.com <ch...@google.com> #3
Over to platform owner for consideration.
ch...@google.com <ch...@google.com>
ap...@google.com <ap...@google.com> #4
Yeah, we want this, but with
ju...@google.com <ju...@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.
Description
There is currently no method in
ContextCompat
for retrieving the display associated with aContext
in a backward compatible manner.