@JuanR's answer is correct, but the downside of calling the new method directly is that it only works on Android T+. Use BundleCompat.getParcelable(Bundle, String, Class)
from androidx.core to get the best available behavior regardless of Android version.