prefer attachment in share intent if there is one

This commit is contained in:
Christian Schneppe 2019-07-17 20:45:52 +02:00
parent f42d144a66
commit 1f77d6b8cd

View file

@ -119,7 +119,7 @@ public class ShareWithActivity extends XmppActivity implements XmppConnectionSer
if (data != null && "geo".equals(data.getScheme())) { if (data != null && "geo".equals(data.getScheme())) {
this.share.uris.clear(); this.share.uris.clear();
this.share.uris.add(data); this.share.uris.add(data);
} else if (type != null && uri != null && (text == null || !type.equals("text/plain"))) { } else if (type != null && uri != null) {
this.share.uris.clear(); this.share.uris.clear();
this.share.uris.add(uri); this.share.uris.add(uri);
} else { } else {