mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-13 03:07:32 +01:00
Add proper mime type to shared gpx files
This prevents apps to show up in the intent chooser that do not know how to deal with gpx files (e.g. Conversations)
This commit is contained in:
parent
e1ef2455dc
commit
fd664b9c67
@ -273,7 +273,7 @@ public class ActivitySummariesActivity extends AbstractListActivity<BaseActivity
|
||||
|
||||
if(uris.size() > 0) {
|
||||
final Intent intent = new Intent(Intent.ACTION_SEND_MULTIPLE);
|
||||
intent.setType("*/*");
|
||||
intent.setType("application/gpx+xml");
|
||||
intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);
|
||||
startActivity(Intent.createChooser(intent, "SHARE"));
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user