Merge pull request #2578 from nextcloud/nullContextAgain

fix again a null context
This commit is contained in:
Andy Scherzinger 2018-05-14 14:29:54 +02:00 committed by GitHub
commit 4d2dc56e82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -701,7 +701,8 @@ public class ThumbnailsCacheManager {
if (MimeTypeUtil.isVideo(mFile)) {
imageView.setImageBitmap(ThumbnailsCacheManager.mDefaultVideo);
} else {
imageView.setImageDrawable(MimeTypeUtil.getFileTypeIcon(null, mFile.getName(), null));
imageView.setImageDrawable(MimeTypeUtil.getFileTypeIcon(null, mFile.getName(),
mContext));
}
}
}