Skip to content

Commit

Permalink
Fixed home widget crash when showing notes with attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
federicoiosue committed Nov 3, 2019
1 parent b17e8e7 commit a58ca47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static Bitmap getBitmapFromAttachment (Context mContext, Attachment mAtta
mAttachment.getUri().getPath();

if (AttachmentsHelper.typeOf(mAttachment, MIME_TYPE_VIDEO, MIME_TYPE_IMAGE, MIME_TYPE_SKETCH)) {
bmp = BitmapUtils.getThumbnail(mContext, mAttachment.getUri(), width, height);
bmp = BitmapUtils.getThumbnail(mContext, FileProviderHelper.getShareableUri(mAttachment), width, height);

} else if (MIME_TYPE_AUDIO.equals(mAttachment.getMime_type())) {
bmp = ThumbnailUtils.extractThumbnail(
Expand Down

0 comments on commit a58ca47

Please sign in to comment.