79542445

Date: 2025-03-28 21:37:09
Score: 3
Natty:
Report link

@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.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @JuanR's
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: star4z