@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); if (mModelInfo != null) { outState.putSerializable(GlobalAction.ContractAction.EXTRA_KEY_CONTRACT_INFO, mModelInfo); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Logger.e(TAG, "onCreate"); if (savedInstanceState != null) { mModelInfo = (ContractModelInfo) savedInstanceState.getSerializable( GlobalAction.ContractAction.EXTRA_KEY_CONTRACT_INFO); } }