fixed bug with save state
This commit is contained in:
parent
5f37455c83
commit
ed05437b06
|
|
@ -215,10 +215,8 @@ public abstract class ViewControllerFragment<TState extends AbstractState, TActi
|
|||
super.onSaveInstanceState(savedInstanceState);
|
||||
if (viewController != null) {
|
||||
viewController.onSaveInstanceState(savedInstanceState);
|
||||
savedInstanceState.putSerializable(VIEW_CONTROLLER_STATE_EXTRA, state);
|
||||
} else if (getArguments() != null && getArguments().containsKey(VIEW_CONTROLLER_STATE_EXTRA)) {
|
||||
savedInstanceState.putSerializable(VIEW_CONTROLLER_STATE_EXTRA, getArguments().getSerializable(VIEW_CONTROLLER_STATE_EXTRA));
|
||||
}
|
||||
savedInstanceState.putSerializable(VIEW_CONTROLLER_STATE_EXTRA, state);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue