Search in sources :

Example 1 with TransferListAdapter

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);
}
Also used : TransferListAdapter(com.frostwire.android.gui.adapters.TransferListAdapter) Transfer(com.frostwire.transfers.Transfer)

Aggregations

TransferListAdapter (com.frostwire.android.gui.adapters.TransferListAdapter)1 Transfer (com.frostwire.transfers.Transfer)1