prefer attachment in share intent if there is one

This commit is contained in:
Daniel Gultsch 2019-07-14 16:39:09 +02:00
parent 803334e42b
commit 719b35e431
1 changed files with 2 additions and 1 deletions

View File

@ -131,10 +131,11 @@ public class ShareWithActivity extends XmppActivity implements XmppConnectionSer
if (Intent.ACTION_SEND.equals(action)) {
final String text = intent.getStringExtra(Intent.EXTRA_TEXT);
final Uri uri = intent.getParcelableExtra(Intent.EXTRA_STREAM);
if (data != null && "geo".equals(data.getScheme())) {
this.share.uris.clear();
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.add(uri);
} else {