You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
overridefunonCreate(savedInstanceState:Bundle?) {
if (savedInstanceState !=null) {
val fa = savedInstanceState.getParcelable<FragmentAnimator?>("fragmentation_state_save_animator")
if (fa ==null) {
savedInstanceState.putParcelable("fragmentation_state_save_animator", DefaultVerticalAnimator())
}
}
super.onCreate(savedInstanceState)
}
目前只观测到 7.0(Moto G (5)) 会有这个crash,将继续保持观察
Library version me.yokeyword:fragmentation:1.3.3
Support-v4 version com.android.support:support-v4:27.1.1
The text was updated successfully, but these errors were encountered:
抱歉,我又来了
https://github.com/YoKeyword/Fragmentation/issues/894
上次896的问题修复了,但还是能在Crash log 捕捉到 getEnter是空的crash.
查了下,非常诡异,并不能用 开始 single Activity 的模式 来重现。我自己也没办法重现 只能在log 找到这种crash。
这一次是在 SupportFragmentDelegate里面的 oncreate 出现的
这是Log
所以我只好
在自己的BaseFragment里 重写
SupportFragment
的onCreate,判断如果savedInstanceState
没有FragmentAnimator
,就给他加入一个DefaultVerticalAnimator
目前只观测到 7.0(Moto G (5)) 会有这个crash,将继续保持观察
The text was updated successfully, but these errors were encountered: