@Override public void onRestoreInstanceState(Parcelable state) { if (!(state instanceof SwitchIconSavedState)) { super.onRestoreInstanceState(state); return; } SwitchIconSavedState savedState = (SwitchIconSavedState) state; super.onRestoreInstanceState(savedState.getSuperState()); enabled = savedState.iconEnabled; setFraction(enabled ? 0f : 1f); }
@Override public void onRestoreInstanceState(Parcelable state) { super.onRestoreInstanceState(superManager.onRestoreInstanceState(state)); } }
@Override public void onRestoreInstanceState(Parcelable state) { if (state instanceof Bundle) { Bundle bundle = (Bundle) state; normalizedScale = bundle.getFloat("saveScale"); m = bundle.getFloatArray("matrix"); prevMatrix.setValues(m); prevMatchViewHeight = bundle.getFloat("matchViewHeight"); prevMatchViewWidth = bundle.getFloat("matchViewWidth"); prevViewHeight = bundle.getInt("viewHeight"); prevViewWidth = bundle.getInt("viewWidth"); imageRenderedAtLeastOnce = bundle.getBoolean("imageRendered"); super.onRestoreInstanceState(bundle.getParcelable("instanceState")); return; } super.onRestoreInstanceState(state); }
@Override public void onRestoreInstanceState(Parcelable state) { if (state instanceof Bundle) { Bundle bundle = (Bundle) state; normalizedScale = bundle.getFloat("saveScale"); m = bundle.getFloatArray("matrix"); prevMatrix.setValues(m); prevMatchViewHeight = bundle.getFloat("matchViewHeight"); prevMatchViewWidth = bundle.getFloat("matchViewWidth"); prevViewHeight = bundle.getInt("viewHeight"); prevViewWidth = bundle.getInt("viewWidth"); imageRenderedAtLeastOnce = bundle.getBoolean("imageRendered"); super.onRestoreInstanceState(bundle.getParcelable("instanceState")); return; } super.onRestoreInstanceState(state); }
@Override public void onRestoreInstanceState(Parcelable state) { if (state instanceof Bundle) { Bundle bundle = (Bundle) state; normalizedScale = bundle.getFloat("saveScale"); m = bundle.getFloatArray("matrix"); prevMatrix.setValues(m); prevMatchViewHeight = bundle.getFloat("matchViewHeight"); prevMatchViewWidth = bundle.getFloat("matchViewWidth"); prevViewHeight = bundle.getInt("viewHeight"); prevViewWidth = bundle.getInt("viewWidth"); imageRenderedAtLeastOnce = bundle.getBoolean("imageRendered"); super.onRestoreInstanceState(bundle.getParcelable("instanceState")); return; } super.onRestoreInstanceState(state); }
@Override public void onRestoreInstanceState(Parcelable state) { if (state instanceof Bundle) { Bundle bundle = (Bundle) state; normalizedScale = bundle.getFloat("saveScale"); m = bundle.getFloatArray("matrix"); prevMatrix.setValues(m); prevMatchViewHeight = bundle.getFloat("matchViewHeight"); prevMatchViewWidth = bundle.getFloat("matchViewWidth"); prevViewHeight = bundle.getInt("viewHeight"); prevViewWidth = bundle.getInt("viewWidth"); imageRenderedAtLeastOnce = bundle.getBoolean("imageRendered"); super.onRestoreInstanceState(bundle.getParcelable("instanceState")); return; } super.onRestoreInstanceState(state); }
@Override public void onRestoreInstanceState(Parcelable state) { if (state instanceof Bundle) { Bundle bundle = (Bundle) state; normalizedScale = bundle.getFloat("saveScale"); m = bundle.getFloatArray("matrix"); prevMatrix.setValues(m); prevMatchViewHeight = bundle.getFloat("matchViewHeight"); prevMatchViewWidth = bundle.getFloat("matchViewWidth"); prevViewHeight = bundle.getInt("viewHeight"); prevViewWidth = bundle.getInt("viewWidth"); imageRenderedAtLeastOnce = bundle.getBoolean("imageRendered"); super.onRestoreInstanceState(bundle.getParcelable("instanceState")); return; } super.onRestoreInstanceState(state); }
@Override public void onRestoreInstanceState(Parcelable state) { SavedState ss = (SavedState) state; super.onRestoreInstanceState(ss.getSuperState()); this.mCropMode = ss.mode; this.mBackgroundColor = ss.backgroundColor; this.mOverlayColor = ss.overlayColor; this.mFrameColor = ss.frameColor; this.mGuideShowMode = ss.guideShowMode; this.mHandleShowMode = ss.handleShowMode; this.mShowGuide = ss.showGuide; this.mShowHandle = ss.showHandle; this.mHandleSize = ss.handleSize; this.mTouchPadding = ss.touchPadding; this.mMinFrameSize = ss.minFrameSize; this.mCustomRatio = new PointF(ss.customRatioX, ss.customRatioY); this.mFrameStrokeWeight = ss.frameStrokeWeight; this.mGuideStrokeWeight = ss.guideStrokeWeight; this.mIsCropEnabled = ss.isCropEnabled; this.mHandleColor = ss.handleColor; this.mGuideColor = ss.guideColor; setImageBitmap(ss.image); requestLayout(); }
@Override public void onRestoreInstanceState(Parcelable state) { super.onRestoreInstanceState(mRadiusUtils.onRestoreInstanceState(state)); mRadiusUtils.onSizeChanged(getWidth(), getHeight()); } }