@Override public void onViewStateRestored(Bundle savedInstanceState) { super.onViewStateRestored(savedInstanceState); if (savedInstanceState != null) { mBundleObaStopId = savedInstanceState.getString(MapParams.STOP_ID); } }
@Override public void onViewStateRestored(@Nullable Bundle savedInstanceState) { super.onViewStateRestored(savedInstanceState); BaseApplication.getBus().post(new FragmentOnViewStateRestoredEvent()); Timber.tag(TAG); Timber.d("onViewStateRestored"); }
@Override public void onViewStateRestored(Bundle inState) { super.onViewStateRestored(inState); Log.e("here", "called restored"); if (inState != null) { Log.e("here", "called restored"); } }
@Override public void onViewStateRestored(@Nullable Bundle savedInstanceState) { super.onViewStateRestored(savedInstanceState); if (savedInstanceState != null) { Bundle inState = savedInstanceState.getBundle(TAG); putCurrentState(inState); } }
@Override public void onViewStateRestored(@Nullable Bundle savedInstanceState) { if (savedInstanceState != null) { setupPager(); pager.setCurrentItem(savedInstanceState.getInt(SAVE_CURRENT_PAGE)); } super.onViewStateRestored(savedInstanceState); }
@Override public void onViewStateRestored(Bundle savedInstanceState) { super.onViewStateRestored(savedInstanceState); if (null != savedInstanceState) { mAuthorId = savedInstanceState.getInt("authorId"); mDataMode = savedInstanceState.getInt("dataMode"); } }
@Override public void onViewStateRestored(Bundle savedInstanceState) { if (savedInstanceState != null) { mSelectedChange = savedInstanceState.getString(CHANGE_ID); mChangeNumber = savedInstanceState.getInt(CHANGE_NO); setStatus(savedInstanceState.getString(STATUS)); restartLoaders(mSelectedChange); } super.onViewStateRestored(savedInstanceState); }
@Override public void onViewStateRestored(Bundle savedInstanceState) { super.onViewStateRestored(savedInstanceState); if (savedInstanceState != null && savedInstanceState.containsKey("itemDate")) { DateTime itemDate = (DateTime) savedInstanceState.getSerializable("itemDate"); mItem.setDate(itemDate); mDate.setText(mItem.getLocalizedDate()); } Log.d(TAG, "onViewStateRestored : " + mItem.getDate("YYYY-MM-DD")); }
@Override public void onViewStateRestored(Bundle savedInstanceState) { super.onViewStateRestored(savedInstanceState); Log.d(TAG, "onViewStateRestored()"); if (savedInstanceState != null) { Parcelable savedRecyclerLayoutState = savedInstanceState.getParcelable(KEY_LAYOUT_MANAGER); mLayoutManager.onRestoreInstanceState(savedRecyclerLayoutState); mAdapter.notifyDataSetChanged(); } }
@Override public void onViewStateRestored(Bundle savedInstanceState) { super.onViewStateRestored(savedInstanceState); if (savedInstanceState != null) { if (savedInstanceState.containsKey(KEY_SAVED_LOCATION_LAT) && savedInstanceState.containsKey(KEY_SAVED_LOCATION_LNG)) { savedLocation = new LatLng( savedInstanceState.getDouble(KEY_SAVED_LOCATION_LAT), savedInstanceState.getDouble(KEY_SAVED_LOCATION_LNG)); } if (savedInstanceState.containsKey(KEY_SAVED_LOCATION_ZOOM)) { savedZoon = savedInstanceState.getDouble(KEY_SAVED_LOCATION_ZOOM); } } }
@Override public void onViewStateRestored(Bundle savedInstanceState) { Log.d(LOG_TAG, "OnViewStateRestored"); // if (savedInstanceState != null) { // currentState = savedInstanceState.getParcelable(STATE); // launchLoader(currentState.lastPageLoaded); // mLinearLayoutManager.scrollToPosition(currentState.firstVisibleIndex); // //поставить выделение selected на нужной позиции // // if (mListener.isDualPane() && currentState.selectedId > 0) { // Log.d(LOG_TAG, "Loading article"); // loadArticle(currentState.selectedId, currentState.selectedPosition); // } // } else { if (PreferencesUtility.readCategory(getContext()) == Article.Category.FAVOURITES) { mListener.removeOffsetListener(); } launchLoader(1); // } super.onViewStateRestored(savedInstanceState); }
@Override public void onViewStateRestored(Bundle savedInstanceState) { super.onViewStateRestored(savedInstanceState); rvAdvies.scrollToPosition(0); }
@Override public void onViewStateRestored(Bundle savedInstanceState) { super.onViewStateRestored(savedInstanceState); // Make sure fragments are updated after check box view state is restored. updateFragmentVisibility(); }
@Override public void onViewStateRestored(Bundle savedInstanceState) { if (savedInstanceState != null) layoutManagerSavedState = savedInstanceState.getParcelable(LAYOUT_MANAGER_STATE); super.onViewStateRestored(savedInstanceState); }
@Override public void onViewStateRestored(@Nullable Bundle savedInstanceState) { super.onViewStateRestored(savedInstanceState); }
@Override public void onViewStateRestored(Bundle savedInstanceState) { recLifeCycle(getClass(), CALL_TO_SUPER); super.onViewStateRestored(savedInstanceState); recLifeCycle(getClass(), RETURN_FROM_SUPER); }
@Override public void onViewStateRestored(Bundle savedInstanceState) { Log.d("FragmentCycle===>", "onViewStateRestored: bundle=" + parseNull(savedInstanceState)); super.onViewStateRestored(savedInstanceState); }