@Override protected Boolean doInBackground(Void... params){
  String[] checkedFilePaths=mFileListFragment.getCheckedFilePaths();
  long total=0;
  for (int i=0; checkedFilePaths != null && i < checkedFilePaths.length; i++) {
    String localPath=checkedFilePaths[i];
    File localFile=new File(localPath);
    total+=localFile.length();
  }
  return (Boolean.valueOf(FileStorageUtils.getUsableSpace(mAccountOnCreation.name) >= total));
}

@ Override protected Boolean doInBackground ( Void ... params ) { String [ ] checkedFilePaths = mFileListFragment . getCheckedFilePaths ( ) ; long total = 0 ; for ( int i = 0 ; checkedFilePaths != null && i < checkedFilePaths . length ; i ++ ) { String localPath = checkedFilePaths [ i ] ; File localFile = new File ( localPath ) ; total += localFile . length ( ) ; } return ( Boolean . valueOf ( FileStorageUtils . getUsableSpace ( mAccountOnCreation . name ) >= total ) ) ; }
checks the available space
