use of com.frostwire.transfers.BittorrentDownload in project frostwire by frostwire.
the class TransferListAdapter method getMenuAdapter.
private MenuAdapter getMenuAdapter(View view) {
Object tag = view.getTag();
String title = "";
List<MenuAction> items = new ArrayList<>();
if (tag instanceof BittorrentDownload) {
title = populateBittorrentDownloadMenuActions((BittorrentDownload) tag, items);
} else if (tag instanceof Transfer) {
title = populateCloudDownloadMenuActions(tag, items);
}
return items.size() > 0 ? new MenuAdapter(contextRef.get(), title, items) : null;
}
Aggregations