Skip to content

Commit

Permalink
Merge pull request #153 from doncung/UpdateThumbnailManager
Browse files Browse the repository at this point in the history
Update thumbnail logic to try getting thumbnails for videos.
  • Loading branch information
doncung authored Aug 29, 2017
2 parents e56ec71 + 5a4ffb6 commit 7305f51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected void initRecyclerView(RecyclerView view){
}
}

public class SpacesItemDecoration extends RecyclerView.ItemDecoration {
public static class SpacesItemDecoration extends RecyclerView.ItemDecoration {

private int halfSpace;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ public static boolean isThumbnailAvailable(BoxItem item) {

int index = item.getName().lastIndexOf(".");
if (index > 0) {
return IMAGE_EXTENSIONS.contains(item.getName().substring(index + 1).toLowerCase());
String extension = item.getName().substring(index + 1).toLowerCase();
return IMAGE_EXTENSIONS.contains(extension)
|| VIDEO_EXTENSIONS.contains(extension);
}
return false;
}
Expand Down

0 comments on commit 7305f51

Please sign in to comment.