added white heart to new rendering as well
This commit is contained in:
parent
e6d336c293
commit
33d1621e3b
|
@ -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() {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue