aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-07-17 20:45:52 +0200
committerChristian Schneppe <christian@pix-art.de>2019-07-17 20:45:52 +0200
commit1f77d6b8cd5cd91bbed953bcdf0038020f2173ae (patch)
tree224a5060abd5b02e000cefc16afebc20fa2849fb /src/main/java
parentf42d144a660ad1f89b6630e88704cad258bfabb9 (diff)
prefer attachment in share intent if there is one
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ShareWithActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ShareWithActivity.java b/src/main/java/de/pixart/messenger/ui/ShareWithActivity.java
index 11c98d2b7..4cc97994d 100644
--- a/src/main/java/de/pixart/messenger/ui/ShareWithActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/ShareWithActivity.java
@@ -119,7 +119,7 @@ public class ShareWithActivity extends XmppActivity implements XmppConnectionSer
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 {