Exemplo n.º 1
0
  @Override
  protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);

    outState.putInt("index", index);
    outState.putSerializable("bean", mBean);
  }
Exemplo n.º 2
0
  @Override
  protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);

    if (!TextUtils.isEmpty(toolbarTitle)) outState.putString("toolbarTitle", toolbarTitle);
  }