mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 15:15:51 +03:00
Fixes after rebase
This commit is contained in:
parent
fc6e3fc458
commit
d912bd2dce
1 changed files with 3 additions and 3 deletions
|
@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue