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()) { if (message.isGeoUri()) {
displayLocationMessage(viewHolder,message); displayLocationMessage(viewHolder,message);
} else if (message.bodyIsOnlyEmojis()) { } else if (message.bodyIsOnlyEmojis()) {
displayEmojiMessage(viewHolder, message.getBody().replaceAll("\\s","")); displayEmojiMessage(viewHolder, message.getBody().trim());
} else if (message.treatAsDownloadable()) { } else if (message.treatAsDownloadable()) {
try { try {
URL url = new URL(message.getBody()); URL url = new URL(message.getBody());