Ejemplo n.º 1
0
  @Override
  public void onSaveInstanceState(Bundle outState) {
    data.name = mNameEditText.getText().toString();
    data.srid = Integer.parseInt(mSridEditText.getText().toString());
    data.charset = mCharsetEditText.getText().toString();
    outState.putSerializable(TAG_SAVESTATE, data);

    super.onSaveInstanceState(outState);
  }
Ejemplo n.º 2
0
  @Override
  public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);

    if (savedInstanceState != null) {
      data = (ShapefileDialogData) savedInstanceState.getSerializable(TAG_SAVESTATE);
    }

    if (data.srid != -1) {
      mSridEditText.setText(Integer.toString(data.srid));
    }

    mCharsetEditText.setText(data.charset);
    mNameEditText.setText(data.name);
  }