From a58ca472fb73bcbafceddecc32e7e14e9e9e48b8 Mon Sep 17 00:00:00 2001 From: Federico Iosue Date: Sun, 3 Nov 2019 18:53:56 +0100 Subject: [PATCH] Fixed home widget crash when showing notes with attachment --- .../main/java/it/feio/android/omninotes/utils/BitmapHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omniNotes/src/main/java/it/feio/android/omninotes/utils/BitmapHelper.java b/omniNotes/src/main/java/it/feio/android/omninotes/utils/BitmapHelper.java index d327ba8f19..ab914f3a04 100644 --- a/omniNotes/src/main/java/it/feio/android/omninotes/utils/BitmapHelper.java +++ b/omniNotes/src/main/java/it/feio/android/omninotes/utils/BitmapHelper.java @@ -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(