@Override public void onRestoreInstanceState(Parcelable state) { if (state instanceof Bundle) { Bundle bundle = (Bundle) state; this.rounded = bundle.getBoolean(RoundableView.KEY); this.bootstrapSize = bundle.getFloat(BootstrapSizeView.KEY); Serializable brand = bundle.getSerializable(BootstrapBrand.KEY); if (brand instanceof BootstrapBrand) { bootstrapBrand = (BootstrapBrand) brand; } state = bundle.getParcelable(TAG); } super.onRestoreInstanceState(state); updateBootstrapState(); }
@Override public void onRestoreInstanceState(Parcelable state) { if (!(state instanceof SavedState)) { super.onRestoreInstanceState(state); return; } SavedState savedState = (SavedState) state; super.onRestoreInstanceState(savedState.getSuperState()); setText(savedState.mentionsEditable); }
@Override public void onRestoreInstanceState(Parcelable state) { if (!(state instanceof SavedStyledTextState)) { super.onRestoreInstanceState(state); return; } SavedStyledTextState ss = (SavedStyledTextState) state; super.onRestoreInstanceState(ss.getSuperState()); setBackgroundColor(ss.mBackgroundColor); }
@Override public void onRestoreInstanceState(Parcelable state) { if (state instanceof Bundle) { Bundle bundle = (Bundle) state; state = bundle.getParcelable("instanceState"); super.onRestoreInstanceState(state); String cc = bundle.getString("stateToSave"); setText(cc); boolean focus = bundle.getBoolean("focus", false); if (focus) requestFocus(); } else { super.onRestoreInstanceState(state); } }
@Override public void onRestoreInstanceState(Parcelable state) { if(state instanceof SavedState) { SavedState savedState = (SavedState)state; super.onRestoreInstanceState(savedState.getSuperState()); setRichTextEditing(savedState.useRTFormatting(), savedState.getContent()); } else { super.onRestoreInstanceState(state); } if (mListener != null) { mListener.onRestoredInstanceState(this); } }
@Override public void onWhoCardViewCreated(final EditText nameEditText, final EditText emailEditText, final View viewToFocus) { this.whoCardNameEditText = nameEditText; this.whoCardEmailEditText = emailEditText; if (pendingWhoCardName != null) { nameEditText.onRestoreInstanceState(pendingWhoCardName); pendingWhoCardName = null; } if (pendingWhoCardEmail != null) { emailEditText.onRestoreInstanceState(pendingWhoCardEmail); pendingWhoCardEmail = null; } messageCenterRecyclerView.setPadding(0, 0, 0, 0); if (viewToFocus != null) { viewToFocus.requestFocus(); if (forceShowKeyboard) { viewToFocus.post(new Runnable() { // TODO: replace with DispatchQueue @Override public void run() { if (forceShowKeyboard) { forceShowKeyboard = false; Util.showSoftKeyboard(hostingActivityRef.get(), viewToFocus); } } }); } } hideFab(); }
@Override public void onRestoreInstanceState(Parcelable state) { BaseSavedState savedState = (BaseSavedState) state; super.onRestoreInstanceState(savedState.getSuperState()); patternedViewHelper.onRestoreInstanceState(state); }
this.composerEditText.onRestoreInstanceState(composingViewSavedState);