From de486501c7bec0fe37573c5aaee8b201c0d68112 Mon Sep 17 00:00:00 2001 From: zhangzd Date: Sun, 2 Sep 2018 22:49:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=A0=E7=B1=BB=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E5=8A=A0=E8=BD=BD=E6=9C=BA=E5=88=B6=E4=B8=8D=E5=90=8C?= =?UTF-8?q?=EF=BC=8C=E5=AF=BC=E8=87=B4=20Parcel=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=E5=A4=B1=E8=B4=A5=E8=80=8C=E5=BC=95=E8=B5=B7?= =?UTF-8?q?=E7=9A=84=E5=B4=A9=E6=BA=83=20android.os.BadParcelableException?= =?UTF-8?q?=20ClassNotFoundException=20when=20unmarshalling:=20me.yokeywor?= =?UTF-8?q?d.fragmentation.anim.FragmentAnimator?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/me/yokeyword/fragmentation/SupportFragmentDelegate.java | 1 + 1 file changed, 1 insertion(+) diff --git a/fragmentation_core/src/main/java/me/yokeyword/fragmentation/SupportFragmentDelegate.java b/fragmentation_core/src/main/java/me/yokeyword/fragmentation/SupportFragmentDelegate.java index 90e52ada..4f374516 100644 --- a/fragmentation_core/src/main/java/me/yokeyword/fragmentation/SupportFragmentDelegate.java +++ b/fragmentation_core/src/main/java/me/yokeyword/fragmentation/SupportFragmentDelegate.java @@ -104,6 +104,7 @@ public void onCreate(@Nullable Bundle savedInstanceState) { if (savedInstanceState == null) { getFragmentAnimator(); } else { + savedInstanceState.setClassLoader(getClass().getClassLoader()); mSaveInstanceState = savedInstanceState; mFragmentAnimator = savedInstanceState.getParcelable(TransactionDelegate.FRAGMENTATION_STATE_SAVE_ANIMATOR); mIsHidden = savedInstanceState.getBoolean(TransactionDelegate.FRAGMENTATION_STATE_SAVE_IS_HIDDEN);