Caused by: java.lang.IllegalArgumentException: Illegal value type android.util.SparseArray for key "foo"
at androidx.core.os.BundleKt.bundleOf(Bundle.kt:99)
Erasure prevents validating the generic type is bound by Parcelable. This should be solved by #263 where the call site will change slightly to be fully type-safe.
Bundle has putSparseParcelableArray, but the
bundleOf()
function does not support this:Error: