From d0570ef7cbe7fa4c9fb3473a627d08c910f44937 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Thu, 5 Oct 2017 17:20:28 -0700 Subject: [PATCH] Fix media preview crash Fixes #7050 // FREEBIE --- src/org/thoughtcrime/securesms/mms/AttachmentManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/thoughtcrime/securesms/mms/AttachmentManager.java b/src/org/thoughtcrime/securesms/mms/AttachmentManager.java index ae42048091..de22754994 100644 --- a/src/org/thoughtcrime/securesms/mms/AttachmentManager.java +++ b/src/org/thoughtcrime/securesms/mms/AttachmentManager.java @@ -415,6 +415,7 @@ public class AttachmentManager { Intent intent = new Intent(context, MediaPreviewActivity.class); intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); intent.putExtra(MediaPreviewActivity.SIZE_EXTRA, slide.asAttachment().getSize()); + intent.putExtra(MediaPreviewActivity.OUTGOING_EXTRA, true); intent.setDataAndType(slide.getUri(), slide.getContentType()); context.startActivity(intent);