Do not restrict parcelized type.

This commit is contained in:
Alex Hart
2024-07-19 16:32:29 -03:00
parent b34bf4b8b0
commit 046d439887

View File

@@ -80,7 +80,7 @@ public class OutlinedThumbnailView extends ThumbnailView {
@Override
protected void onRestoreInstanceState(Parcelable state) {
if (state instanceof Bundle) {
Parcelable root = BundleCompat.getParcelable((Bundle) state, STATE_ROOT, Parcelable.class);
Parcelable root = ((Bundle) state).getParcelable(STATE_ROOT);
this.isOutlineEnabled = ((Bundle) state).getBoolean(STATE_OUTLINE_ENABLED, true);
super.onRestoreInstanceState(root);