@Override
  protected void onRestoreInstanceState(Parcelable state) {
    if (state instanceof Bundle) {
      Bundle bundle = (Bundle) state;
      this.mPreviousSelectedIndex = bundle.getInt("mPreviousSelectedIndex");
      this.mSelectedIndex = bundle.getInt("mSelectedIndex");
      super.onRestoreInstanceState(bundle.getParcelable("instanceState"));
      return;
    }

    super.onRestoreInstanceState(state);
  }
Esempio n. 2
0
  @Override
  public void onRestoreInstanceState(Parcelable state) {
    if (state instanceof SavedState) {
      SavedState savedState = (SavedState) state;
      mExpanded = savedState.mExpanded;

      if (mRotatingDrawable != null) {
        mRotatingDrawable.setRotation(mExpanded ? EXPANDED_PLUS_ROTATION : COLLAPSED_PLUS_ROTATION);
      }

      super.onRestoreInstanceState(savedState.getSuperState());
    } else {
      super.onRestoreInstanceState(state);
    }
  }
  @Override
  protected void onRestoreInstanceState(Parcelable state) {
    SavedState savedState = (SavedState) state;
    super.onRestoreInstanceState(savedState.getSuperState());

    if (savedState.mRightPaneVisible) showRightPane(false);
  }
 @Override
 protected void onRestoreInstanceState(Parcelable state) {
   SavedState savedState = (SavedState) state;
   super.onRestoreInstanceState(savedState.getSuperState());
   if (savedState.currentScreen != INVALID_SCREEN) {
     mCurrentPage = savedState.currentScreen;
   }
 }
 @Override
 protected void onRestoreInstanceState(Parcelable state) {
   Bundle saved = (Bundle) state;
   setDrawerLockMode(saved.getInt(KEY_LEFT_LOCK_MODER, LOCK_MODE_UNLOCKED), Gravity.LEFT);
   setDrawerLockMode(saved.getInt(KEY_RIGHT_LOCK_MODER, LOCK_MODE_UNLOCKED), Gravity.RIGHT);
   openDrawer(saved.getInt(KEY_OPENED_DRAWER, Gravity.NO_GRAVITY));
   super.onRestoreInstanceState(saved.getParcelable(KEY_SUPER));
 }
 @Override
 protected void onRestoreInstanceState(Parcelable state) {
   Log.e(TAG, "onRestoreInstanceState");
   SavedState savedState = (SavedState) state;
   super.onRestoreInstanceState(savedState.getSuperState());
   if (savedState.currentScreen != -1) {
     mCurrentScreen = savedState.currentScreen;
     Launcher.setScreen(mCurrentScreen);
   }
 }
Esempio n. 7
0
 /** Restore the previous saved current screen */
 @Override
 protected void onRestoreInstanceState(Parcelable state) {
   SavedState savedState = (SavedState) state;
   super.onRestoreInstanceState(savedState.getSuperState());
   if (savedState.currentRow != -1) {
     mCurrentRow = savedState.currentRow;
   }
   if (savedState.currentColumn != -1) {
     mCurrentColumn = savedState.currentColumn;
   }
 }
Esempio n. 8
0
  @Override
  public void onRestoreInstanceState(final Parcelable state) {
    if (!(state instanceof SavedState)) {
      super.onRestoreInstanceState(state);
      return;
    }

    final SavedState ss = (SavedState) state;
    super.onRestoreInstanceState(ss.getSuperState());

    mController.mIsRightPaneShown = ss.mIsRightPaneShown;

    mRightSpacing = ss.mSpacing;
    mLeftSpacing = ss.mLeftPaneSpacing;
    mShadowWidth = ss.mShadowWidth;
    mFlingDuration = ss.mFlingDuration;
    mFadeType = ss.mFadeType;
    mFadeMax = ss.mFadeValue;

    // this will call requestLayout() to calculate layout according to
    // values
    setShadowVisible(ss.mIsShadowVisible);
  }
Esempio n. 9
0
 protected void onRestoreInstanceState(Parcelable parcelable) {
     SavedState savedState = (SavedState) parcelable;
     super.onRestoreInstanceState(savedState.getSuperState());
     Menu d = this.b != null ? this.b.d() : null;
     if (!(savedState.a == 0 || this.G == null || d == null)) {
         MenuItem findItem = d.findItem(savedState.a);
         if (findItem != null) {
             gm.b(findItem);
         }
     }
     if (savedState.b) {
         o();
     }
 }
 @Override
 protected void onRestoreInstanceState(Parcelable state) {
   SavedState ss = (SavedState) state;
   super.onRestoreInstanceState(ss.getSuperState());
   setSelectionColor(ss.color);
   setDateTextAppearance(ss.dateTextAppearance);
   setWeekDayTextAppearance(ss.weekDayTextAppearance);
   setShowOtherDates(ss.showOtherDates);
   setRangeDates(ss.minDate, ss.maxDate);
   setSelectedDate(ss.selectedDate);
   setFirstDayOfWeek(ss.firstDayOfWeek);
   setTileSize(ss.tileSizePx);
   setTopbarVisible(ss.topbarVisible);
 }
Esempio n. 11
0
 @Override
 public void onRestoreInstanceState(Parcelable state) {
   SavedState savedState = (SavedState) state;
   super.onRestoreInstanceState(savedState.getSuperState());
   mPosition = savedState.position;
   mBackgroundColorPressed = savedState.backgroundColorPressed;
   mTextColor = savedState.textColor;
   mTextColorCenter = savedState.textColorCenter;
   mLineColorCenter = savedState.lineColorCenter;
   mLineHeight = savedState.lineHeight;
   mTabPaddingLeft = savedState.tabPaddingLeft;
   mTabPaddingTop = savedState.tabPaddingTop;
   mTabPaddingRight = savedState.tabPaddingRight;
   mTabPaddingBottom = savedState.tabPaddingBottom;
   mTextSize = savedState.textSize;
   applyStyles();
 }
 protected void onRestoreInstanceState(Parcelable paramParcelable)
 {
   paramParcelable = (SavedState)paramParcelable;
   super.onRestoreInstanceState(paramParcelable.getSuperState());
   paramParcelable = a;
   int i2 = getChildCount();
   int i1 = 0;
   while (i1 < i2)
   {
     View localView = getChildAt(i1);
     int i3 = localView.getId();
     Behavior localBehavior = a(localView).b();
     if ((i3 != -1) && (localBehavior != null))
     {
       Parcelable localParcelable = (Parcelable)paramParcelable.get(i3);
       if (localParcelable != null) {
         localBehavior.a(this, localView, localParcelable);
       }
     }
     i1 += 1;
   }
 }
 @Override
 public void onRestoreInstanceState(Parcelable state) {
   SavedState ss = (SavedState) state;
   super.onRestoreInstanceState(ss.getSuperState());
   mSlideState = ss.mSlideState;
 }
 @Override
 public void onRestoreInstanceState(Parcelable state) {
   SavedState ss = (SavedState) state;
   super.onRestoreInstanceState(ss.getSuperState());
   mSlideState = ss.mSlideState != null ? ss.mSlideState : DEFAULT_SLIDE_STATE;
 }