aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs
diff options
context:
space:
mode:
authorAndreas Straub <andy@strb.org>2015-09-02 21:57:52 +0200
committerAndreas Straub <andy@strb.org>2015-09-02 22:03:15 +0200
commitb265341848863c864a63a079032cbe3fbd89dfd5 (patch)
treea60218ca11fe2d714dce13f9331296d257d4e8d2 /src/main/java/eu/siacs
parentfc594e249a89d0bd333bca1a9958a53b7640e659 (diff)
Ensure uris is empty before onStart adds to it
Fixes #1382
Diffstat (limited to 'src/main/java/eu/siacs')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/ShareWithActivity.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/ShareWithActivity.java b/src/main/java/eu/siacs/conversations/ui/ShareWithActivity.java
index e0ebd5c2f..8ec44f4e5 100644
--- a/src/main/java/eu/siacs/conversations/ui/ShareWithActivity.java
+++ b/src/main/java/eu/siacs/conversations/ui/ShareWithActivity.java
@@ -131,6 +131,7 @@ public class ShareWithActivity extends XmppActivity {
if (Intent.ACTION_SEND.equals(intent.getAction())) {
final Uri uri = getIntent().getParcelableExtra(Intent.EXTRA_STREAM);
if (type != null && uri != null && !type.equalsIgnoreCase("text/plain")) {
+ this.share.uris.clear();
this.share.uris.add(uri);
this.share.image = type.startsWith("image/") || isImage(uri);
} else {