From 3017742cbacb61b6a50aeb730c3141d831a6431f Mon Sep 17 00:00:00 2001 From: vanous Date: Sun, 11 Aug 2019 23:15:56 +0200 Subject: [PATCH] Added type to intent when sharing --- .../nodomain/freeyourgadget/gadgetbridge/util/AndroidUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/AndroidUtils.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/AndroidUtils.java index b5cbf9665..034f51f10 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/AndroidUtils.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/AndroidUtils.java @@ -224,7 +224,7 @@ public class AndroidUtils { Uri contentUri = FileProvider.getUriForFile(context, context.getApplicationContext().getPackageName() + ".screenshot_provider", file); intent.setFlags(Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION); - intent.setData(contentUri); + intent.setDataAndType(contentUri,"application/gpx+xml"); context.startActivity(intent); } }