1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-22 06:41:06 +02: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:
Daniele Gobbetti 2018-04-25 15:06:02 +02:00
parent e1ef2455dc
commit fd664b9c67

View File

@ -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 {