summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorEdward Savage-Jones <edward.savage-jones@sony.com>2022-02-18 21:02:22 +0100
committeralk3pInjection <webmaster@raspii.tech>2022-05-06 01:18:25 +0800
commit023ce7ccb2a96b31131d442c90f2889172e62cec (patch)
treebf57b63a300e6376bad07077b1d1a9df33e23308 /packages
parent2c918b36d62c98b06211d63d13c0548c1b65c49d (diff)
SystemUI: 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
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/screenshot/SaveImageInBackgroundTask.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/screenshot/SaveImageInBackgroundTask.java b/packages/SystemUI/src/com/android/systemui/screenshot/SaveImageInBackgroundTask.java
index c3463bfb6485..ff5b73b95756 100644
--- a/packages/SystemUI/src/com/android/systemui/screenshot/SaveImageInBackgroundTask.java
+++ b/packages/SystemUI/src/com/android/systemui/screenshot/SaveImageInBackgroundTask.java
@@ -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:".