List of usage examples for android.os Bundle putIntegerArrayList
@Override public void putIntegerArrayList(@Nullable String key, @Nullable ArrayList<Integer> value)
From source file:com.fbartnitzek.tasteemall.filter.EntityFilterTabFragment.java
@Override public void onSaveInstanceState(Bundle outState) { outState.putString(NAME, mName);//from w ww. j ava 2 s .c om outState.putString(BASE_ENTITY, mBaseEntity); outState.putInt(ADAPTER_POSITION, mPosition); outState.putIntegerArrayList(LIST_SELECTED, mSelected); super.onSaveInstanceState(outState); }
From source file:com.github.andrewlord1990.materialandroidsample.SampleActivity.java
private void showColorChooser(int requestCode, @StringRes int title, ArrayList<Integer> colors) { Bundle args = new Bundle(); args.putInt(ColorChooserDialog.ARG_REQUEST_CODE, requestCode); args.putString(ColorChooserDialog.ARG_TITLE, getString(title)); args.putIntegerArrayList(ColorChooserDialog.ARG_COLORS, colors); ColorChooserDialog dialog = new ColorChooserDialog(); dialog.setArguments(args);//from www . ja v a 2 s. co m dialog.show(getSupportFragmentManager(), ColorChooserDialog.TAG); }
From source file:org.thbz.hanguldrill.ConfigManageDialogFragment.java
@Override public void onSaveInstanceState(Bundle outState) { if (configsSelected != null && configsSelected.size() > 0) { ArrayList<Integer> arr = new ArrayList<>(); arr.addAll(configsSelected);// w w w . j a v a 2 s . c o m outState.putIntegerArrayList(CONFIGSSELECTEDKEY, arr); } super.onSaveInstanceState(outState); }
From source file:ch.hesso.master.sweetcity.activity.report.ReportActivity.java
@Override public void onSaveInstanceState(Bundle savedInstanceState) { super.onSaveInstanceState(savedInstanceState); savedInstanceState.putIntegerArrayList("tagList", new ArrayList<Integer>(tagList.keySet())); savedInstanceState.putParcelable("image", bitmapPicture); }
From source file:com.google.samples.apps.gameloopmanager.TestLoopsActivity.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putIntegerArrayList(CHECKED_SCENARIOS, new ArrayList<>(checkedScenarios)); outState.putParcelableArrayList(TEST_LOOP_GROUPS, testLoopGroups); }
From source file:com.example.android.pantry.scanner.BarcodeScannerActivity.java
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putBoolean(FLASH_STATE, mFlash); outState.putBoolean(AUTO_FOCUS_STATE, mAutoFocus); outState.putIntegerArrayList(SELECTED_FORMATS, mSelectedIndices); outState.putInt(CAMERA_ID, mCameraId); }
From source file:com.flexible.flexibleadapter.SelectableAdapter.java
/** * Saves the state of the current selection on the items. * * @param outState Current state//from www . j a v a2 s . co m * @since 1.0.0 */ public void onSaveInstanceState(Bundle outState) { outState.putIntegerArrayList(TAG, new ArrayList<>(mSelectedPositions)); if (DEBUG && getSelectedItemCount() > 0) Log.d(TAG, "Saving selection " + mSelectedPositions); }
From source file:org.proninyaroslav.libretorrent.fragments.DetailTorrentTrackersFragment.java
@Override public void onSaveInstanceState(Bundle outState) { if (layoutManager != null) { listTrackerState = layoutManager.onSaveInstanceState(); }/*from w w w .j a va2s . co m*/ outState.putParcelable(TAG_LIST_TRACKER_STATE, listTrackerState); outState.putSerializable(TAG_TRACKER_LIST, trackers); if (adapter != null) { outState.putIntegerArrayList(TAG_SELECTABLE_ADAPTER, adapter.getSelectedItems()); } outState.putBoolean(TAG_IN_ACTION_MODE, inActionMode); outState.putStringArrayList(TAG_SELECTED_TRACKERS, selectedTrackers); super.onSaveInstanceState(outState); }
From source file:com.cerema.cloud2.ui.fragment.ExtendedListFragment.java
@Override public void onSaveInstanceState(Bundle savedInstanceState) { super.onSaveInstanceState(savedInstanceState); Log_OC.d(TAG, "onSaveInstanceState()"); savedInstanceState.putInt(KEY_SAVED_LIST_POSITION, getReferencePosition()); savedInstanceState.putIntegerArrayList(KEY_INDEXES, mIndexes); savedInstanceState.putIntegerArrayList(KEY_FIRST_POSITIONS, mFirstPositions); savedInstanceState.putIntegerArrayList(KEY_TOPS, mTops); savedInstanceState.putInt(KEY_HEIGHT_CELL, mHeightCell); savedInstanceState.putString(KEY_EMPTY_LIST_MESSAGE, getEmptyViewText()); }
From source file:org.rm3l.ddwrt.fragments.DDWRTBaseFragment.java
@Override public void onSaveInstanceState(Bundle outState) { //save the loader ids on file outState.putIntegerArrayList(STATE_LOADER_IDS, Lists.newArrayList(loaderIdsInUse.keySet())); super.onSaveInstanceState(outState); }