use of com.frostwire.android.gui.adapters.menu.FileListAdapter.FileDescriptorItem in project frostwire by frostwire.
the class FileListAdapter method convertFiles.
private static ArrayList<FileDescriptorItem> convertFiles(Collection<FileDescriptor> fds) {
if (fds == null) {
return new ArrayList<>();
}
ArrayList<FileDescriptorItem> list = new ArrayList<>(fds.size());
for (FileDescriptor fd : fds) {
FileDescriptorItem item = new FileDescriptorItem();
item.fd = fd;
list.add(item);
}
return list;
}
Aggregations