Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 91d5f616 authored by Edward Savage-Jones's avatar Edward Savage-Jones Committed by Michael Bestas
Browse files

Fix edit button in screenshot share activity

Update the screenshot share intent to align it with the
data that is present in the screenshot edit intent.

Bug: 220161786
Test: Take screenshot. Tap share. Tap Edit, which opens
      screenshot in Photos.  See buganizer for more info.
Change-Id: I7a1254e579cea38fd70fc13da81e1dae98f5f968
parent 971c6f14
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -238,7 +238,7 @@ class SaveImageInBackgroundTask extends AsyncTask<String, Void, Void> {
            String subjectDate = DateFormat.getDateTimeInstance().format(new Date(mImageTime));
            String subject = String.format(SCREENSHOT_SHARE_SUBJECT_TEMPLATE, subjectDate);
            Intent sharingIntent = new Intent(Intent.ACTION_SEND);
            sharingIntent.setType("image/png");
            sharingIntent.setDataAndType(uri, "image/png");
            sharingIntent.putExtra(Intent.EXTRA_STREAM, uri);
            // Include URI in ClipData also, so that grantPermission picks it up.
            // We don't use setData here because some apps interpret this as "to:".