aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/ui/adapter/ConversationAdapter.java
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-09-03 09:15:07 +0200
committeriNPUTmice <daniel@gultsch.de>2014-09-03 09:15:07 +0200
commit1f378bffc80c73d23cb62106c912043504ce7fca (patch)
tree6674b048ff8a9a0679f970cceca34d05a6f5d311 /src/eu/siacs/conversations/ui/adapter/ConversationAdapter.java
parentc1453db5dfbcd2da23b0cd3b580d357074e75e4d (diff)
made emoticon parsing enableable - default false
Diffstat (limited to '')
-rw-r--r--src/eu/siacs/conversations/ui/adapter/ConversationAdapter.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/ui/adapter/ConversationAdapter.java b/src/eu/siacs/conversations/ui/adapter/ConversationAdapter.java
index c3ff5b22..6eb9846a 100644
--- a/src/eu/siacs/conversations/ui/adapter/ConversationAdapter.java
+++ b/src/eu/siacs/conversations/ui/adapter/ConversationAdapter.java
@@ -2,6 +2,7 @@ package eu.siacs.conversations.ui.adapter;
import java.util.List;
+import eu.siacs.conversations.Config;
import eu.siacs.conversations.R;
import eu.siacs.conversations.entities.Conversation;
import eu.siacs.conversations.entities.Message;
@@ -63,7 +64,10 @@ public class ConversationAdapter extends ArrayAdapter<Conversation> {
|| latestMessage.getType() == Message.TYPE_PRIVATE) {
if ((latestMessage.getEncryption() != Message.ENCRYPTION_PGP)
&& (latestMessage.getEncryption() != Message.ENCRYPTION_DECRYPTION_FAILED)) {
- convLastMsg.setText(UIHelper.transformAsciiEmoticons(conv.getLatestMessage().getBody()));
+ String body = Config.PARSE_EMOTICONS ? UIHelper
+ .transformAsciiEmoticons(latestMessage.getBody())
+ : latestMessage.getBody();
+ convLastMsg.setText(body);
} else {
convLastMsg.setText(activity
.getText(R.string.encrypted_message_received));