public void onDestroyActionModeUnpacking(ActionMode mode) { Iterator<Integer> iterator = checkedSounds.iterator(); while (iterator.hasNext()) { int position = iterator.next(); SoundController.getInstance() .copySound( soundInfoItems.get(position), BackPackListManager.getCurrentSoundInfoArrayList(), BackPackListManager.getCurrentAdapter()); } backPackSoundFragment.clearCheckedSoundsAndEnableButtons(); }
@Override protected void onResume() { super.onResume(); if (backpackItem) { Iterator<SoundInfo> iterator = BackPackListManager.getActionBarSoundInfoArrayList().iterator(); while (iterator.hasNext()) { SoundInfo soundInfo = iterator.next(); BackPackListManager.setCurrentSoundInfo(soundInfo); SoundController.getInstance() .backPackSound( BackPackListManager.getCurrentSoundInfo(), backPackSoundFragment, BackPackListManager.getInstance().getSoundInfoArrayList(), backPackSoundFragment.getAdapter()); } BackPackListManager.getActionBarSoundInfoArrayList().clear(); backpackItem = false; } }