use of com.frostwire.android.gui.tasks.StartDownloadTask in project frostwire by frostwire.
the class ConfirmSoundcloudDownloadDialog method startDownloads.
private static void startDownloads(Context ctx, List<? extends SearchResult> srs) {
if (srs != null && !srs.isEmpty()) {
for (SearchResult sr : srs) {
StartDownloadTask task = new StartDownloadTask(ctx, sr);
Tasks.executeParallel(task);
}
UIUtils.showTransfersOnDownloadStart(ctx);
}
}
use of com.frostwire.android.gui.tasks.StartDownloadTask in project frostwire by frostwire.
the class SearchFragment method startDownload.
public static void startDownload(Context ctx, SearchResult sr, String message) {
if (sr instanceof AbstractTorrentSearchResult) {
UIUtils.showShortMessage(ctx, R.string.fetching_torrent_ellipsis);
}
StartDownloadTask task = new StartDownloadTask(ctx, sr, message);
Tasks.executeParallel(task);
}
Aggregations