public void removeNonActiveDownloads(boolean isChecked) {
    ArrayList<DownloadInfoRunnable> allDownloads = new ArrayList<DownloadInfoRunnable>();
    allDownloads.addAll(manager.getmErrorList());
    allDownloads.addAll(manager.getmCompletedList());

    for (DownloadInfoRunnable downloadInfoRunnable : allDownloads) {
      downloadInfoRunnable.remove(isChecked);
    }
  }
  public void stopDownload(long id) {

    DownloadInfoRunnable info = getDownload(id);
    info.remove(true);
  }