From b265341848863c864a63a079032cbe3fbd89dfd5 Mon Sep 17 00:00:00 2001 From: Andreas Straub Date: Wed, 2 Sep 2015 21:57:52 +0200 Subject: Ensure uris is empty before onStart adds to it Fixes #1382 --- src/main/java/eu/siacs/conversations/ui/ShareWithActivity.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/main/java/eu/siacs/conversations/ui/ShareWithActivity.java b/src/main/java/eu/siacs/conversations/ui/ShareWithActivity.java index e0ebd5c2..8ec44f4e 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 { -- cgit v1.2.3