コード例 #1
0
 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();
 }
コード例 #2
0
ファイル: BackPackActivity.java プロジェクト: sy1121/thor
  @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;
    }
  }