Commit 96d1fddd authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

VideoListFragment: fill the adapter even if the thumnailer is missing

parent b84759ff
......@@ -252,21 +252,20 @@ public class VideoListFragment extends SherlockListFragment implements ISortable
}
private void updateList() {
if (mThumbnailerManager == null) {
Log.w(TAG, "Can't update the list, thumbnailer missing");
return;
}
List<Media> itemList = mMediaLibrary.getVideoItems();
mThumbnailerManager.clearJobs();
if (mThumbnailerManager != null)
mThumbnailerManager.clearJobs();
else
Log.w(TAG, "Can't generate thumbnails, the thumbnailer is missing");
mVideoAdapter.clear();
if (itemList.size() > 0) {
for (Media item : itemList) {
if (item.getType() == Media.TYPE_VIDEO) {
mVideoAdapter.add(item);
if (item.getPicture() == null && !item.isPictureParsed())
if (mThumbnailerManager != null && item.getPicture() == null && !item.isPictureParsed())
mThumbnailerManager.addJob(item);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment