remove all whitespaces in emoji only messages
This commit is contained in:
parent
225cca4566
commit
7bcf173866
|
@ -669,7 +669,7 @@ public class Message extends AbstractEntity {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean bodyIsOnlyEmojis() {
|
public boolean bodyIsOnlyEmojis() {
|
||||||
return EmojiManager.isOnlyEmojis(body.trim());
|
return EmojiManager.isOnlyEmojis(body.replaceAll("\\s",""));
|
||||||
}
|
}
|
||||||
|
|
||||||
public FileParams getFileParams() {
|
public FileParams getFileParams() {
|
||||||
|
|
|
@ -793,7 +793,7 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie
|
||||||
if (GeoHelper.isGeoUri(message.getBody())) {
|
if (GeoHelper.isGeoUri(message.getBody())) {
|
||||||
displayLocationMessage(viewHolder,message);
|
displayLocationMessage(viewHolder,message);
|
||||||
} else if (message.bodyIsOnlyEmojis()) {
|
} else if (message.bodyIsOnlyEmojis()) {
|
||||||
displayEmojiMessage(viewHolder, message.getBody().trim());
|
displayEmojiMessage(viewHolder, message.getBody().replaceAll("\\s",""));
|
||||||
} else if (message.treatAsDownloadable()) {
|
} else if (message.treatAsDownloadable()) {
|
||||||
try {
|
try {
|
||||||
URL url = new URL(message.getBody());
|
URL url = new URL(message.getBody());
|
||||||
|
|
Loading…
Reference in a new issue