diff options
author | Andreas Straub <andy@strb.org> | 2015-09-02 21:57:52 +0200 |
---|---|---|
committer | Andreas Straub <andy@strb.org> | 2015-09-02 22:03:15 +0200 |
commit | b265341848863c864a63a079032cbe3fbd89dfd5 (patch) | |
tree | a60218ca11fe2d714dce13f9331296d257d4e8d2 | |
parent | fc594e249a89d0bd333bca1a9958a53b7640e659 (diff) |
Ensure uris is empty before onStart adds to it
Fixes #1382
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/ShareWithActivity.java | 1 |
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 { |