List of usage examples for android.os Bundle putIntegerArrayList
@Override public void putIntegerArrayList(@Nullable String key, @Nullable ArrayList<Integer> value)
From source file:com.github.chenxiaolong.dualbootpatcher.switcher.SwitcherListFragment.java
/** * {@inheritDoc}//from w w w . j ava2s.c o m */ @Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putInt(EXTRA_TASK_ID_GET_ROMS_STATE, mTaskIdGetRomsState); outState.putInt(EXTRA_TASK_ID_SWITCH_ROM, mTaskIdSwitchRom); outState.putInt(EXTRA_TASK_ID_SET_KERNEL, mTaskIdSetKernel); outState.putIntegerArrayList(EXTRA_TASK_IDS_TO_REMOVE, mTaskIdsToRemove); outState.putBoolean(EXTRA_PERFORMING_ACTION, mPerformingAction); if (mSelectedRom != null) { outState.putParcelable(EXTRA_SELECTED_ROM, mSelectedRom); } outState.putString(EXTRA_ACTIVE_ROM_ID, mActiveRomId); outState.putBoolean(EXTRA_SHOWED_SET_KERNEL_WARNING, mShowedSetKernelWarning); outState.putBoolean(EXTRA_HAVE_PERMISSIONS_RESULT, mHavePermissionsResult); outState.putBoolean(EXTRA_IS_LOADING, mIsLoading); }
From source file:io.github.hidroh.materialistic.widget.StoryRecyclerViewAdapter.java
@Override public Bundle saveState() { Bundle savedState = super.saveState(); savedState.putParcelableArrayList(STATE_ITEMS, mItems); savedState.putParcelableArrayList(STATE_UPDATED, mUpdated); ArrayList<String> promotedKey = new ArrayList<>(mPromoted.size()); ArrayList<Integer> promotedValue = new ArrayList<>(mPromoted.size()); for (Map.Entry<String, Integer> entry : mPromoted.entrySet()) { promotedKey.add(entry.getKey()); promotedValue.add(entry.getValue()); }//from w w w . j a v a 2 s. co m savedState.putStringArrayList(STATE_PROMOTED_KEY, promotedKey); savedState.putIntegerArrayList(STATE_PROMOTED_VALUE, promotedValue); savedState.putBoolean(STATE_SHOW_ALL, mShowAll); savedState.putBoolean(STATE_HIGHLIGHT_UPDATED, mHighlightUpdated); savedState.putInt(STATE_FAVORITE_REVISION, mFavoriteRevision); savedState.putString(STATE_USERNAME, mUsername); return savedState; }
From source file:com.chute.android.photopickerplus.ui.activity.ServicesActivity.java
@Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putString(Constants.KEY_FOLDER_ID, folderId); outState.putParcelable(Constants.KEY_ACCOUNT, account); outState.putInt(Constants.KEY_PHOTO_FILTER_TYPE, photoFilterType); List<Integer> accountPositions = new ArrayList<Integer>(); List<Integer> imagePaths = new ArrayList<Integer>(); List<Integer> videoPaths = new ArrayList<Integer>(); if (listenerAssetsSelection != null && listenerAssetsSelection.getSocialPhotosSelection() != null) { accountPositions.addAll(listenerAssetsSelection.getSocialPhotosSelection()); outState.putIntegerArrayList(Constants.KEY_SELECTED_ACCOUNTS_ITEMS, (ArrayList<Integer>) accountPositions); }//from ww w . ja v a 2s .c om if (listenerImagesSelection != null && listenerImagesSelection.getCursorImagesSelection() != null) { imagePaths.addAll(listenerImagesSelection.getCursorImagesSelection()); outState.putIntegerArrayList(Constants.KEY_SELECTED_IMAGES_ITEMS, (ArrayList<Integer>) imagePaths); } if (listenerVideosSelection != null && listenerVideosSelection.getCursorVideosSelection() != null) { videoPaths.addAll(listenerVideosSelection.getCursorVideosSelection()); outState.putIntegerArrayList(Constants.KEY_SELECTED_VIDEOS_ITEMS, (ArrayList<Integer>) videoPaths); } }
From source file:org.proninyaroslav.libretorrent.fragments.MainFragment.java
@Override public void onSaveInstanceState(Bundle outState) { outState.putParcelable(TAG_PREV_IMPL_INTENT, prevImplIntent); outState.putIntegerArrayList(TAG_SELECTABLE_ADAPTER, adapter.getSelectedItems()); outState.putBoolean(TAG_IN_ACTION_MODE, inActionMode); outState.putStringArrayList(TAG_SELECTED_TORRENTS, selectedTorrents); torrentsListState = layoutManager.onSaveInstanceState(); outState.putParcelable(TAG_TORRENTS_LIST_STATE, torrentsListState); super.onSaveInstanceState(outState); }
From source file:com.android.yijiang.kzx.widget.betterpickers.radialtimepicker.RadialTimePickerDialog.java
@Override public void onSaveInstanceState(Bundle outState) { if (mTimePicker != null) { outState.putInt(KEY_HOUR_OF_DAY, mTimePicker.getHours()); outState.putInt(KEY_MINUTE, mTimePicker.getMinutes()); outState.putBoolean(KEY_IS_24_HOUR_VIEW, mIs24HourMode); outState.putInt(KEY_CURRENT_ITEM_SHOWING, mTimePicker.getCurrentItemShowing()); outState.putBoolean(KEY_IN_KB_MODE, mInKbMode); if (mInKbMode) { outState.putIntegerArrayList(KEY_TYPED_TIMES, mTypedTimes); }/* ww w.j a va 2 s. c o m*/ } }
From source file:com.binomed.showtime.android.screen.results.CineShowTimeResultsActivity.java
@Override protected void onSaveInstanceState(Bundle outState) { outState.putBoolean(ParamIntent.BUNDLE_SAVE, true); if (getModelActivity().getNearResp() != null) { outState.putParcelable(ParamIntent.NEAR_RESP, getModelActivity().getNearResp()); } else {/* w w w. jav a 2 s. c o m*/ outState.putBoolean(ParamIntent.ACTIVITY_SEARCH_FORCE_REQUEST, getModelActivity().isForceResearch()); } if (getModelActivity().getLocalisation() != null) { outState.putDouble(ParamIntent.ACTIVITY_SEARCH_LATITUDE, getModelActivity().getLocalisation().getLatitude()); outState.putDouble(ParamIntent.ACTIVITY_SEARCH_LONGITUDE, getModelActivity().getLocalisation().getLongitude()); } outState.putString(ParamIntent.ACTIVITY_SEARCH_THEATER_ID, getModelActivity().getFavTheaterId()); outState.putInt(ParamIntent.ACTIVITY_SEARCH_DAY, getModelActivity().getDay()); outState.putString(ParamIntent.ACTIVITY_SEARCH_CITY, getModelActivity().getCityName()); outState.putString(ParamIntent.ACTIVITY_SEARCH_MOVIE_NAME, getModelActivity().getMovieName()); outState.putIntegerArrayList(ParamIntent.ACTIVITY_SEARCH_GROUP_EXPAND, new ArrayList<Integer>(getModelActivity().getGroupExpanded())); super.onSaveInstanceState(outState); }
From source file:cn.fulldroid.lib.datetimepicker.time.TimePickerDialog.java
@Override public void onSaveInstanceState(Bundle outState) { if (mTimePicker != null) { outState.putInt(KEY_HOUR_OF_DAY, mTimePicker.getHours()); outState.putInt(KEY_MINUTE, mTimePicker.getMinutes()); outState.putBoolean(KEY_IS_24_HOUR_VIEW, mIs24HourMode); outState.putInt(KEY_CURRENT_ITEM_SHOWING, mTimePicker.getCurrentItemShowing()); outState.putBoolean(KEY_IN_KB_MODE, mInKbMode); if (mInKbMode) { outState.putIntegerArrayList(KEY_TYPED_TIMES, mTypedTimes); }//from w w w . jav a2s .c o m outState.putBoolean(KEY_VIBRATE, mVibrate); } }
From source file:com.android.datetimepicker.time.TimePickerDialog.java
@Override public void onSaveInstanceState(Bundle outState) { if (mTimePicker != null) { outState.putInt(KEY_HOUR_OF_DAY, mTimePicker.getHours()); outState.putInt(KEY_MINUTE, mTimePicker.getMinutes()); outState.putBoolean(KEY_IS_24_HOUR_VIEW, mIs24HourMode); outState.putInt(KEY_CURRENT_ITEM_SHOWING, mTimePicker.getCurrentItemShowing()); outState.putBoolean(KEY_IN_KB_MODE, mInKbMode); if (mInKbMode) { outState.putIntegerArrayList(KEY_TYPED_TIMES, mTypedTimes); }//from ww w . j a v a 2 s . c o m outState.putBoolean(KEY_DARK_THEME, mThemeDark); } }
From source file:mirko.android.datetimepicker.time.TimePickerDialogSupport.java
@Override public void onSaveInstanceState(Bundle outState) { if (mTimePicker != null) { outState.putInt(KEY_HOUR_OF_DAY, mTimePicker.getHours()); outState.putInt(KEY_MINUTE, mTimePicker.getMinutes()); outState.putBoolean(KEY_IS_24_HOUR_VIEW, mIs24HourMode); outState.putInt(KEY_CURRENT_ITEM_SHOWING, mTimePicker.getCurrentItemShowing()); outState.putBoolean(KEY_IN_KB_MODE, mInKbMode); outState.putBoolean(KEY_ENABLE_CLEAR_BUTTON, mEnableClearButton); if (mInKbMode) { outState.putIntegerArrayList(KEY_TYPED_TIMES, mTypedTimes); }/*w w w .j a v a 2s .c om*/ } }
From source file:de.frank_durr.ble_v_monitor.MainActivity.java
@Override public void onSaveInstanceState(Bundle savedInstanceState) { super.onSaveInstanceState(savedInstanceState); // Save the data model savedInstanceState.putInt(BUNDLE_KEY_CURRENT_VOLTAGE, DataModel.theModel.getCurrentVoltage()); List<Integer> minutelyHistory = DataModel.theModel.getMinutelyHistory(); if (minutelyHistory != null) { ArrayList<Integer> values = new ArrayList<>(minutelyHistory); savedInstanceState.putIntegerArrayList(BUNDLE_KEY_HISTORY_MINUTELY, values); }/*from w w w .j a va2 s.c o m*/ List<Integer> hourlyHistory = DataModel.theModel.getHourlyHistory(); if (hourlyHistory != null) { ArrayList<Integer> values = new ArrayList<>(hourlyHistory); savedInstanceState.putIntegerArrayList(BUNDLE_KEY_HISTORY_HOURLY, values); } List<Integer> dailyHistory = DataModel.theModel.getDailyHistory(); if (dailyHistory != null) { ArrayList<Integer> values = new ArrayList<>(dailyHistory); savedInstanceState.putIntegerArrayList(BUNDLE_KEY_HISTORY_DAILY, values); } // Save information about selected Bluetooth device // TODO: Move this to preferences? if (bluetoothDevice != null) { savedInstanceState.putParcelable(BUNDLE_KEY_BLUETOOTH_DEVICE, bluetoothDevice); } // Save tags of existing fragments so we can retrieve fragment references later in the // newly created activity via the fragments manager. if (fragmentCurrentVoltage != null) { String tag = fragmentCurrentVoltage.getTag(); savedInstanceState.putString(BUNDLE_KEY_CURRENT_VOLTAGE_FRAGMENT, tag); } if (fragmentMinutelyHistory != null) { String tag = fragmentMinutelyHistory.getTag(); savedInstanceState.putString(BUNDLE_KEY_MINUTELY_HISTORY_FRAGMENT, tag); } if (fragmentHourlyHistory != null) { String tag = fragmentHourlyHistory.getTag(); savedInstanceState.putString(BUNDLE_KEY_HOURLY_HISTORY_FRAGMENT, tag); } if (fragmentDailyHistory != null) { String tag = fragmentDailyHistory.getTag(); savedInstanceState.putString(BUNDLE_KEY_DAILY_HISTORY_FRAGMENT, tag); } }