@Override
 public void onSaveInstanceState(@NonNull Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putInt(KEY_SELECTED_YEAR, mCalendar.get(Calendar.YEAR));
   outState.putInt(KEY_SELECTED_MONTH, mCalendar.get(Calendar.MONTH));
   outState.putInt(KEY_SELECTED_DAY, mCalendar.get(Calendar.DAY_OF_MONTH));
   outState.putInt(KEY_WEEK_START, mWeekStart);
   outState.putInt(KEY_YEAR_START, mMinYear);
   outState.putInt(KEY_YEAR_END, mMaxYear);
   outState.putInt(KEY_CURRENT_VIEW, mCurrentView);
   int listPosition = -1;
   if (mCurrentView == MONTH_AND_DAY_VIEW) {
     listPosition = mDayPickerView.getMostVisiblePosition();
   } else if (mCurrentView == YEAR_VIEW) {
     listPosition = mYearPickerView.getFirstVisiblePosition();
     outState.putInt(KEY_LIST_POSITION_OFFSET, mYearPickerView.getFirstPositionOffset());
   }
   outState.putInt(KEY_LIST_POSITION, listPosition);
   outState.putSerializable(KEY_MIN_DATE, mMinDate);
   outState.putSerializable(KEY_MAX_DATE, mMaxDate);
   outState.putSerializable(KEY_HIGHLIGHTED_DAYS, highlightedDays);
   outState.putSerializable(KEY_SELECTABLE_DAYS, selectableDays);
   outState.putBoolean(KEY_THEME_DARK, mThemeDark);
   outState.putBoolean(KEY_VIBRATE, mVibrate);
 }
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   if (mParentFragment != null) {
     outState.putInt(KEY_DIALOG_ID, mDialogId);
     outState.putInt(KEY_PARENT_FRAGMENT_ID, mParentFragment.getId());
   }
 }
Пример #3
0
 @Override
 public void onSaveInstanceState(@SuppressWarnings("NullableProblems") Bundle outState) {
   outState.putString(TITLE_KEY, getTitle());
   outState.putString(INITIAL_KEY, DateUtils.dateToDateId(getInitialValue()));
   outState.putBoolean(CALENDAR_VIEW_SHOWN, getCalendarViewShown());
   outState.putBoolean(SPINNER_SHOWN, getSpinnerShown());
   outState.putString(ACTUAL_KEY, DateUtils.datePickerToDateId(mPickerDate));
   super.onSaveInstanceState(outState);
 }
Пример #4
0
 @Override
 public final void onSaveInstanceState(@NonNull final Bundle outState) {
   if (mListener != null) {
     // Typically cannot serialize the listener due to its reference to the activity.
     mListener = null;
     outState.putBoolean(PREVENT_RECREATION, true);
   }
   super.onSaveInstanceState(outState);
 }
  @Override
  public void onSaveInstanceState(Bundle outState) {

    outState.putBoolean("doPlayTrack", false);
    outState.putString("previewUrl", mPreviewUrl);
    outState.putInt("position", mPosition);
    outState.putParcelableArrayList("tracklist", mTrackInfos);
    outState.putString("artist", mArtist);
    outState.putString("trackDuration", mFormatedDuration);
    outState.putString("trackPlayed", mFormatterPlayed);
    //        if(mMusicLoadingDialog != null) {
    //            outState.putBoolean("isDialogShowing", mMusicLoadingDialog.isShowing());
    //        }
    super.onSaveInstanceState(outState);
  }
Пример #6
0
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putCharSequence("root", parentItem);
 }
 @Override
 public void onSaveInstanceState(Bundle state) {
   super.onSaveInstanceState(state);
   state.putString(PENDING_ACTION_KEY, mPendingAcction.name());
 }
 @Override
 public void onSaveInstanceState(@NonNull Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putString(KEY_LABEL, mLabelBox.getText().toString());
 }
Пример #9
0
 @Override
 public void onSaveInstanceState(Bundle saveInstanceState) {
   final Bundle args = getArguments();
   if (args != null) saveInstanceState.putAll(args);
   super.onSaveInstanceState(saveInstanceState);
 }
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   mDelegate.onSaveInstanceState(outState);
 }
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putString("id", id);
 }