From 2cdc394d525fe2a77dada6681aa7b042f65b0c7f Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sun, 8 Dec 2019 09:48:44 +0100 Subject: fix shareWithActivity --- src/main/java/de/pixart/messenger/ui/ShareWithActivity.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/main/java/de/pixart/messenger') diff --git a/src/main/java/de/pixart/messenger/ui/ShareWithActivity.java b/src/main/java/de/pixart/messenger/ui/ShareWithActivity.java index 35cdc1e18..c79895324 100644 --- a/src/main/java/de/pixart/messenger/ui/ShareWithActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ShareWithActivity.java @@ -190,12 +190,13 @@ public class ShareWithActivity extends XmppActivity implements XmppConnectionSer } else if (share.text != null) { intent.setAction(ConversationsActivity.ACTION_VIEW_CONVERSATION); intent.putExtra(Intent.EXTRA_TEXT, share.text); - try { - startActivity(intent); - } catch (SecurityException e) { - Toast.makeText(this, R.string.sharing_application_not_grant_permission, Toast.LENGTH_SHORT).show(); - return; - } + intent.putExtra(ConversationsActivity.EXTRA_AS_QUOTE, share.asQuote); + } + try { + startActivity(intent); + } catch (SecurityException e) { + Toast.makeText(this, R.string.sharing_application_not_grant_permission, Toast.LENGTH_SHORT).show(); + return; } finish(); } -- cgit v1.2.3