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
}
al...@google.com <al...@google.com> #3
Over to platform owner for consideration.
al...@google.com <al...@google.com> #4
Yeah, we want this, but with
al...@google.com <al...@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.
so...@google.com <so...@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
HandlerExecutor
was added upstream andandroidx-main
.