use of com.frostwire.android.gui.adapters.TransferListAdapter in project frostwire by frostwire.
the class TransfersFragment method setupAdapter.
private void setupAdapter(Context context) {
if (context == null) {
return;
}
List<Transfer> transfers = filter(TransferManager.instance().getTransfers(), selectedStatus);
Collections.sort(transfers, transferComparator);
adapter = new TransferListAdapter(context, transfers);
list.setLayoutManager(recyclerViewLayoutManager);
list.setAdapter(adapter);
}
Aggregations