onViewStateRestored(savedInstanceState: Bundle)
当我在 Activity 布局中静态添加 Fragment 时,即使onSaveInstanceState(outState: Bundle)
正确调用,我似乎也无法恢复状态。
当我动态添加它时,它适用于同一个片段。
这根本不可能做到这一点,还是需要在清单或 w/e 中进行额外配置
编辑: onViewStateRestored(savedInstanceState: Bundle)
将被调用,但 Bundle 为空,以及在传递 Bundle 的其他生命周期回调中