List of usage examples for android.os Bundle putParcelableArrayList
public void putParcelableArrayList(@Nullable String key, @Nullable ArrayList<? extends Parcelable> value)
From source file:ufms.br.com.ufmsapp.fragment.DisciplinasFragment.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putParcelableArrayList(STATE_DISCIPLINAS, listDisciplinas); }
From source file:com.coincollection.ReorderCollections.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); // Save off our collection list in the event of a screen orientation change outState.putParcelableArrayList("mItems", mItems); outState.putBoolean("mUnsavedChanges", mUnsavedChanges); }
From source file:io.github.tonyguyot.acronym.ui.QueryFragment.java
@Override public void onSaveInstanceState(Bundle savedState) { super.onSaveInstanceState(savedState); ArrayList<Acronym> values = mAdapter.getValues(); if (values != null) { savedState.putParcelableArrayList(KEY_ACRONYMS, values); }//from w w w . java2 s .c o m }
From source file:com.jrummyapps.busybox.fragments.ScriptsFragment.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); if (adapter != null) { outState.putParcelableArrayList("scripts", adapter.scripts); }// w w w . ja v a2s . com }
From source file:de.uni_koblenz_landau.apow.EncounterDetailFragment.java
@Override public void onSaveInstanceState(Bundle savedInstanceState) { savedInstanceState.putSerializable(ARG_ENCOUNTER, mEncounter); savedInstanceState.putParcelableArrayList(ARG_TYPES, (ArrayList<ListViewItem>) mTypes); super.onSaveInstanceState(savedInstanceState); }
From source file:fr.cph.chicago.core.fragment.FavoritesFragment.java
@Override public final void onSaveInstanceState(final Bundle outState) { super.onSaveInstanceState(outState); outState.putParcelableArrayList(bundleBusArrivals, (ArrayList<BusArrival>) busArrivals); outState.putSparseParcelableArray(bundleTrainArrivals, trainArrivals); outState.putParcelableArrayList(bundleBikeStation, (ArrayList<BikeStation>) bikeStations); }
From source file:org.site_monitor.activity.MainActivity.java
@Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putParcelableArrayList(PARCEL_SITE_LIST, new ArrayList<Parcelable>(siteSettingsList)); }
From source file:com.github.johnpersano.supertoasts.library.SuperActivityToast.java
/** * Saves the state of all SuperToasts that are showing and/or pending. * * This should be called in the {@link android.app.Activity#onSaveInstanceState(android.os.Bundle)} * method of your Activity./*from w w w . j a v a 2 s. com*/ * * @param bundle The Bundle provided in onSaveInstanceState() */ @SuppressWarnings("unchecked") public static void onSaveState(Bundle bundle) { final ArrayList<Style> styleList = new ArrayList(); // Create a list of every Style used by a SuperToast in the queue for (SuperToast superToast : Toaster.getInstance().getQueue()) { if (superToast instanceof SuperActivityToast) { superToast.getStyle().isSuperActivityToast = true; } styleList.add(superToast.getStyle()); } bundle.putParcelableArrayList(BUNDLE_KEY, styleList); // Let's avoid any erratic behavior and cancel any showing/pending SuperActivityToasts manually Toaster.getInstance().cancelAllSuperToasts(); }
From source file:de.uni_koblenz_landau.apow.SettingsFragment.java
@Override public void onSaveInstanceState(Bundle savedInstanceState) { // Save UI data to instance. savedInstanceState.putParcelable(ARG_SETTINGS, mSettings); savedInstanceState.putParcelableArrayList(ARG_LOCATIONS, (ArrayList<ListViewItem>) mLocations); }
From source file:me.albinmathew.celluloid.ui.activities.MoviesActivity.java
@Override public void onSaveInstanceState(@NonNull Bundle outState) { super.onSaveInstanceState(outState); outState.putParcelableArrayList(STATE_MOVIES, new ArrayList<>(mMoviesAdapter.getMoviesList())); outState.putInt(STATE_SELECTED_POSITION, mSelectedPosition); outState.putInt(STATE_PAGE_COUNT, mPageCount); outState.putString(STATE_CURRENT_SORT_SELECTION, mCurrentSortSelection); }