1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 18:15:49 +01:00

Added type to intent when sharing

This commit is contained in:
vanous 2019-08-11 23:15:56 +02:00 committed by Andreas Shimokawa
parent 5fe4ea7246
commit 3017742cba

View File

@ -224,7 +224,7 @@ public class AndroidUtils {
Uri contentUri = FileProvider.getUriForFile(context, Uri contentUri = FileProvider.getUriForFile(context,
context.getApplicationContext().getPackageName() + ".screenshot_provider", file); context.getApplicationContext().getPackageName() + ".screenshot_provider", file);
intent.setFlags(Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION); 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); context.startActivity(intent);
} }
} }