@Override public Parcelable onSaveInstanceState() { Bundle bundle = new Bundle(); bundle.putParcelable(TAG, super.onSaveInstanceState()); bundle.putSerializable(BootstrapTextView.KEY, bootstrapText); bundle.putSerializable(BootstrapBrand.KEY, bootstrapBrand); return bundle; }
@Override public Parcelable onSaveInstanceState() { Drawable[] savedDrawables = new Drawable[7]; if (viewAttributes.freezesAnimation) { Drawable[] compoundDrawables = getCompoundDrawables(); System.arraycopy(compoundDrawables, 0, savedDrawables, 0, compoundDrawables.length); Drawable[] compoundDrawablesRelative = getCompoundDrawablesRelative(); savedDrawables[4] = compoundDrawablesRelative[0]; //start savedDrawables[5] = compoundDrawablesRelative[2]; //end savedDrawables[6] = getBackground(); } return new GifViewSavedState(super.onSaveInstanceState(), savedDrawables); }
@Override public Parcelable onSaveInstanceState() { Parcelable superState = super.onSaveInstanceState(); SavedState ss = new SavedState(superState); ss.referenceTime = mReferenceTime; return ss; }
@Override public Parcelable onSaveInstanceState() { Parcelable superState = super.onSaveInstanceState(); return new SavedState(superState, (int) mProgress, mState, mCurrentText.toString()); }
@Override public Parcelable onSaveInstanceState() { Parcelable superState = super.onSaveInstanceState(); return new DownloadProgressButton.SavedState(superState, (int) mProgress, mState, mCurrentText.toString()); }
@Override public Parcelable onSaveInstanceState() { Bundle bundle = new Bundle(); bundle.putParcelable("state", super.onSaveInstanceState()); bundle.putInt("selected_index", selectedIndex); bundle.putBoolean("nothing_selected", nothingSelected); if (popupWindow != null) { bundle.putBoolean("is_popup_showing", popupWindow.isShowing()); collapse(); } else { bundle.putBoolean("is_popup_showing", false); } return bundle; }
@Override public Parcelable onSaveInstanceState() { Bundle bundle = new Bundle(); bundle.putParcelable(INSTANCE_STATE, super.onSaveInstanceState()); bundle.putInt(SELECTED_INDEX, selectedIndex); if (popupWindow != null) { bundle.putBoolean(IS_POPUP_SHOWING, popupWindow.isShowing()); dismissDropDown(); } return bundle; }
@Override public Parcelable onSaveInstanceState() { // begin boilerplate code that allows parent classes to save state Parcelable superState = super.onSaveInstanceState(); SavedState ss = new SavedState(superState); // end ss.ids = this.ids; ss.disappear = this.disappear; ss.visible = this.isShown(); ss.type = this.type; return ss; }