private void deleteItems(long[] checkedItemIds,ActionMode mode){
  ArrayList<File> itemsToRemove=new ArrayList<>();
  for (  long id : checkedItemIds) {
    itemsToRemove.add(mChooserAdapter.getItem((int)id));
  }
  AndroidUtils.FileDeleteTask deleteTask=new AndroidUtils.FileDeleteTask(this,itemsToRemove);
  deleteTask.execute();
}

private void deleteItems ( long [ ] checkedItemIds , ActionMode mode ) { ArrayList < File > itemsToRemove = new ArrayList < > ( ) ; for ( long id : checkedItemIds ) { itemsToRemove . add ( mChooserAdapter . getItem ( ( int ) id ) ) ; } AndroidUtils . FileDeleteTask deleteTask = new AndroidUtils . FileDeleteTask ( this , itemsToRemove ) ; deleteTask . execute ( ) ; }
delete all items with corresponding ids , in separate task , finishing mode after if necessary
