added white heart to new rendering as well

This commit is contained in:
Daniel Gultsch 2015-05-10 11:56:23 +02:00
parent e6d336c293
commit 33d1621e3b
2 changed files with 4 additions and 1 deletions

View file

@ -479,7 +479,9 @@ public class Message extends AbstractEntity {
public boolean bodyIsHeart() { public boolean bodyIsHeart() {
return body != null && return body != null &&
(body.trim().equals(UIHelper.BLACK_HEART_SUIT) || body.trim().equals(UIHelper.HEAVY_BLACK_HEART_SUIT)); (body.trim().equals(UIHelper.BLACK_HEART_SUIT)
|| body.trim().equals(UIHelper.HEAVY_BLACK_HEART_SUIT)
|| body.trim().equals(UIHelper.WHITE_HEART_SUIT));
} }
public ImageParams getImageParams() { public ImageParams getImageParams() {

View file

@ -20,6 +20,7 @@ public class UIHelper {
public static String BLACK_HEART_SUIT = "\u2665"; public static String BLACK_HEART_SUIT = "\u2665";
public static String HEAVY_BLACK_HEART_SUIT = "\u2764"; public static String HEAVY_BLACK_HEART_SUIT = "\u2764";
public static String WHITE_HEART_SUIT = "\u2661";
private static final int SHORT_DATE_FLAGS = DateUtils.FORMAT_SHOW_DATE private static final int SHORT_DATE_FLAGS = DateUtils.FORMAT_SHOW_DATE
| DateUtils.FORMAT_NO_YEAR | DateUtils.FORMAT_ABBREV_ALL; | DateUtils.FORMAT_NO_YEAR | DateUtils.FORMAT_ABBREV_ALL;