mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-26 02:25:50 +01:00
Added type to intent when sharing
This commit is contained in:
parent
5fe4ea7246
commit
3017742cba
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user