MessageAdapter: trim but don't replace all whitespaces before displaying emoji message

This commit is contained in:
Daniel Gultsch 2017-10-01 10:42:01 +02:00
parent 6713431986
commit 874c1f4c74

View File

@ -802,7 +802,7 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie
if (message.isGeoUri()) {
displayLocationMessage(viewHolder,message);
} else if (message.bodyIsOnlyEmojis()) {
displayEmojiMessage(viewHolder, message.getBody().replaceAll("\\s",""));
displayEmojiMessage(viewHolder, message.getBody().trim());
} else if (message.treatAsDownloadable()) {
try {
URL url = new URL(message.getBody());