Fixes after rebase

This commit is contained in:
AndyScherzinger 2016-11-02 00:30:50 +01:00
parent fc6e3fc458
commit d912bd2dce
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -416,7 +416,7 @@ public class ThumbnailsCacheManager {
mImageKey = (String) params[1];
}
if (BitmapUtils.isImage(mFile)) {
if (MimeTypeUtil.isImage(mFile)) {
thumbnail = doFileInBackground(mFile);
}
}
@ -448,10 +448,10 @@ public class ThumbnailsCacheManager {
if (mFile.isDirectory()) {
imageView.setImageResource(R.drawable.ic_menu_archive);
} else {
if (BitmapUtils.isVideo(mFile)) {
if (MimeTypeUtil.isVideo(mFile)) {
imageView.setImageBitmap(ThumbnailsCacheManager.mDefaultVideo);
} else {
imageView.setImageResource(MimetypeIconUtil.getFileTypeIconId(null, mFile.getName()));
imageView.setImageResource(MimeTypeUtil.getFileTypeIconId(null, mFile.getName()));
}
}
}