1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-02 17:56:35 +02:00

Fix opening screenshots from notification on external apps

This commit is contained in:
José Rebelo 2023-07-17 00:09:10 +01:00
parent 849337b447
commit 12dd9651e7

View File

@ -395,6 +395,7 @@ public abstract class AbstractDeviceSupport implements DeviceSupport {
intent.setAction(android.content.Intent.ACTION_VIEW);
Uri screenshotURI = FileProvider.getUriForFile(context, context.getApplicationContext().getPackageName() + ".screenshot_provider", new File(fullpath));
intent.setDataAndType(screenshotURI, "image/*");
intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
PendingIntent pIntent = PendingIntentUtils.getActivity(context, 0, intent, 0, false);