From e612506be34a4983dd870ef96f2ee1f1dc0fab25 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sat, 31 Aug 2019 15:50:13 +0200 Subject: when sharing text from PAM to PAM use quotes --- src/main/java/de/pixart/messenger/ui/util/ShareUtil.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java/de/pixart/messenger/ui/util') diff --git a/src/main/java/de/pixart/messenger/ui/util/ShareUtil.java b/src/main/java/de/pixart/messenger/ui/util/ShareUtil.java index 1f53a4c72..0b491e8ab 100644 --- a/src/main/java/de/pixart/messenger/ui/util/ShareUtil.java +++ b/src/main/java/de/pixart/messenger/ui/util/ShareUtil.java @@ -39,6 +39,7 @@ import de.pixart.messenger.R; import de.pixart.messenger.entities.DownloadableFile; import de.pixart.messenger.entities.Message; import de.pixart.messenger.persistance.FileBackend; +import de.pixart.messenger.ui.ConversationsActivity; import de.pixart.messenger.ui.XmppActivity; import de.pixart.messenger.utils.Patterns; import de.pixart.messenger.utils.XmppUri; @@ -52,9 +53,11 @@ public class ShareUtil { if (message.isGeoUri()) { shareIntent.putExtra(Intent.EXTRA_TEXT, message.getBody()); shareIntent.setType("text/plain"); + shareIntent.putExtra(ConversationsActivity.EXTRA_AS_QUOTE, true); } else if (!message.isFileOrImage()) { shareIntent.putExtra(Intent.EXTRA_TEXT, message.getMergedBody().toString()); shareIntent.setType("text/plain"); + shareIntent.putExtra(ConversationsActivity.EXTRA_AS_QUOTE, true); } else { final DownloadableFile file = activity.xmppConnectionService.getFileBackend().getFile(message); try { -- cgit v1.2.3