@Override
 public void onSaveInstanceState(Bundle bundle) {
   super.onSaveInstanceState(bundle);
   bundle.putString(IMAGE_PATH, mNewImagePath);
   bundle.putString(IMAGE_NAME, mNewImageName);
   bundle.putParcelable(IMAGE_URI, mNewImageUriCamera);
 }
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   String mediaId = getMediaId();
   if (mediaId != null) {
     outState.putString(SAVED_MEDIA_ID, mediaId);
   }
   super.onSaveInstanceState(outState);
 }
Esempio n. 3
0
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   outState.putParcelableArray(
       INSTANCE_STATE_BACK_STACK_FILES,
       mBackSelectFileFragments.toArray(new JsonDirectory.JsonFileDir[0]));
   outState.putParcelableArray(
       INSTANCE_STATE_BACK_STACK_TORRENTS,
       mBackTorrentFragments.toArray(new JsonTorrent.JsonTorrentResult[0]));
   super.onSaveInstanceState(outState);
 }
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   DataToSaveImagesVehicles data = new DataToSaveImagesVehicles(imagesMap);
   outState.putParcelable("map", data);
   outState.putParcelableArrayList("arrayList", imageVehicles);
   outState.putInt("orientation", orientation);
   outState.putParcelableArrayList("options", vehicleOptions);
   outState.putParcelable("currentVehicle", currentVehicle);
 }
Esempio n. 5
0
 @Override
 protected void onSaveInstanceState(final Bundle outState) {
   super.onSaveInstanceState(outState);
   if (cacheObservable != null) {
     this.compositeSubscription.add(
         cacheObservable
             .compose(ListActivity.this.<List<MainEntity>>bindUntilEvent(ActivityEvent.DESTROY))
             .subscribe(
                 new SimpleObserver<List<MainEntity>>() {
                   @Override
                   public void onNext(List<MainEntity> mainEntities) {
                     outState.putSerializable(Constants.CACHE, (Serializable) mainEntities);
                   }
                 }));
   }
 }
Esempio n. 6
0
  // Some lifecycle callbacks so that the image can survive orientation change
  @Override
  protected void onSaveInstanceState(Bundle outState) {
    Log.d(Constants.DEBUG, "onsaveinstance imgres " + mImageResized);

    Log.d(Constants.DEBUG, "onsaveinstance mimageheight " + mImageHeight);
    outState.putString(Constants.PHOTO_PATH_KEY, mCurrentPhotoPath);
    outState.putInt(IMAGE_HEIGHT, mImageHeight);
    outState.putInt(IMAGE_WIDTH, mImageWidth);
    if (mCropRectangle != null) {
      RectF r = mCropRectangle.getSelectedRect();
      outState.putInt(RECT_LEFT, (int) r.left);
      outState.putInt(RECT_TOP, (int) r.top);
      outState.putInt(RECT_RIGHT, (int) r.right);
      outState.putInt(RECT_BOTTOM, (int) r.bottom);
    }

    super.onSaveInstanceState(outState);
  }
  @Override
  protected void onSaveInstanceState(Bundle outState) {
    mPagerPhotoPosition =
        mAnimator.isLeaving() || mPagerAdapter.getCount() == 0 ? -1 : mViews.pager.getCurrentItem();

    if (mViews.grid.getChildCount() > 0) {
      View child = mViews.grid.getChildAt(0);
      mGridPosition = mViews.grid.getChildAdapterPosition(child);
      mGridPositionFromTop =
          child.getTop() - Views.getMarginParams(child).topMargin - mViews.grid.getPaddingTop();
    } else {
      mGridPosition = -1;
      mGridPositionFromTop = 0;
    }

    mSettingsMenu.onSaveInstanceState(outState);
    super.onSaveInstanceState(outState);
  }
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putString("navigationTmp", navigationTmp);
 }
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putInt(STATE_KEY_YEAR, mSelectedYear);
   outState.putString(STATE_KEY_TOPIC, mSelectedTopic);
 }
Esempio n. 10
0
 @Override
 public void onSaveInstanceState(Bundle bundle) {
   super.onSaveInstanceState(bundle);
 }
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putInt(STATE_VIEW_TYPE, mViewType);
 }
Esempio n. 12
0
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putParcelable(GAME_EXTRA, Parcels.wrap(presenter.getGameModel()));
 }
Esempio n. 13
0
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
 }
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putSerializable(Constant.DATA_GUIDE_CENTER, data);
 }
Esempio n. 15
0
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   presenterHolder.saveState(outState);
 }
 @Override
 protected void onSaveInstanceState(Bundle bundle) {
   mOnSaveInstanceStateInvoked = true;
   super.onSaveInstanceState(bundle);
 }
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putInt(Malfunction.PREF_MODEL, spnModel.getSelectedItemPosition());
 }
Esempio n. 18
0
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putString("tab", mTabHost.getCurrentTabTag());
 }
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   outState.putBoolean(CAN_PERFORM_LOGOUT, canPerformLogout.get());
   super.onSaveInstanceState(outState);
 }
Esempio n. 20
0
 @Override
 public void onSaveInstanceState(Bundle outState) {
   outState.putInt("id_mensagem", getMensagem().getId());
   super.onSaveInstanceState(outState);
 }
Esempio n. 21
0
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putInt(STATE_SELECTED_POSITION, mCurrentSelectedPosition);
 }
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putBoolean(KEY_KEEP_DRAWER_CLOSED, mKeepDrawerClosed);
 }
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   outState.putSerializable(PAGE_STATE, mPage);
   outState.putBoolean(TRANSLATED_DISMISSED, mTranslatedDismissed);
   super.onSaveInstanceState(outState);
 }