Exemplo n.º 1
0
  @Override
  protected void onSaveInstanceState(Bundle out) {
    // Need to store this state for slider open/close
    // There is one case where the dialog is popped up by the preference
    // framework. In that case, let the preference framework store the
    // dialog state. In other cases, where this activity manually launches
    // the dialog, store the state of the dialog.
    if (mPinDialog.isDialogOpen()) {
      out.putInt(DIALOG_STATE, mDialogState);
      out.putString(DIALOG_PIN, mPinDialog.getEditText().getText().toString());
      out.putString(DIALOG_ERROR, mError);
      out.putBoolean(ENABLE_TO_STATE, mToState);

      // Save inputted PIN code
      switch (mDialogState) {
        case ICC_NEW_MODE:
          out.putString(OLD_PINCODE, mOldPin);
          break;

        case ICC_REENTER_MODE:
          out.putString(OLD_PINCODE, mOldPin);
          out.putString(NEW_PINCODE, mNewPin);
          break;

        case ICC_LOCK_MODE:
        case ICC_OLD_MODE:
        default:
          break;
      }
    } else {
      super.onSaveInstanceState(out);
    }
  }
Exemplo n.º 2
0
  /* (non-Javadoc)
   * @see android.preference.PreferenceActivity#onSaveInstanceState(android.os.Bundle)
   */
  @Override
  protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);

    outState.putParcelable(PREF_ALARM_ENABLED, lastAlarmIntent);
    outState.putParcelable(PREF_SONG, songUri);
    outState.putParcelable(PREF_ALARM_TIME, alarmTime);
  }
Exemplo n.º 3
0
  @Override
  protected void onSaveInstanceState(Bundle outState) {

    outState.putString("WORKAROUND_FOR_BUG_19917_KEY", "WORKAROUND_FOR_BUG_19917_VALUE");
    super.onSaveInstanceState(outState);

    int orientation = Safe40Activity.getDisplayOrientation(this);

    // Lock the screen orientation to the current display orientation : Landscape or Portrait
    this.setRequestedOrientation(orientation);
  }
  @Override
  protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);

    // Save the current fragment, if it is the same as originally launched
    if (mCurrentHeader != null) {
      outState.putParcelable(SAVE_KEY_CURRENT_HEADER, mCurrentHeader);
    }
    if (mParentHeader != null) {
      outState.putParcelable(SAVE_KEY_PARENT_HEADER, mParentHeader);
    }
  }
 @Override
 protected void onSaveInstanceState(Bundle out) {
   // Need to store this state for slider open/close
   // There is one case where the dialog is popped up by the preference
   // framework. In that case, let the preference framework store the
   // dialog state. In other cases, where this activity manually launches
   // the dialog, store the state of the dialog.
   if (mPinDialog.isDialogOpen()) {
     out.putInt(DIALOG_STATE, mDialogState);
     out.putString(DIALOG_PIN, mPinDialog.getEditText().getText().toString());
     out.putString(DIALOG_ERROR, mError);
     out.putBoolean(ENABLE_TO_STATE, mToState);
   } else {
     super.onSaveInstanceState(out);
   }
 }
  @Override
  protected void onSaveInstanceState(Bundle outState) {

    super.onSaveInstanceState(outState);
    outState.putParcelableArrayList(Constants.SUPER_COOKIES, RequestHandler.getCookies());
  }
 /* (non-Javadoc)
  * @see android.app.Activity#onSaveInstanceState(android.os.Bundle)
  */
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   mHelper.onSaveInstanceState(outState);
 }
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   getSherlock().dispatchSaveInstanceState(outState);
 }
 @Override
 protected void onSaveInstanceState(final Bundle outState) {
   super.onSaveInstanceState(outState);
   eventManager.fire(new OnSaveInstanceStateEvent(outState));
 }
 @Override
 public void onSaveInstanceState(@NonNull Bundle savedInstanceState) {
   savedInstanceState.putBoolean(EXPLORE_BY_TOUCH_DIALOG_ACTIVE, mExploreByTouchDialog != null);
   savedInstanceState.putBoolean(TREE_DEBUG_DIALOG_ACTIVE, mTreeDebugDialog != null);
   super.onSaveInstanceState(savedInstanceState);
 }
Exemplo n.º 11
0
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   mUtility.onSaveInstanceState(outState);
 }