mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-29 20:32:22 -05:00
Only prefix message with a space if there's an icon to show
This commit is contained in:
parent
bd932234f5
commit
a75539c344
@ -93,10 +93,7 @@ public class Message {
|
|||||||
public SpannableString render(Context context)
|
public SpannableString render(Context context)
|
||||||
{
|
{
|
||||||
if (canvas == null) {
|
if (canvas == null) {
|
||||||
String prefix = "\n";
|
String prefix = hasIcon() ? "\n " : "\n";
|
||||||
if (hasIcon()) {
|
|
||||||
prefix = " " + prefix;
|
|
||||||
}
|
|
||||||
canvas = new SpannableString(prefix + text);
|
canvas = new SpannableString(prefix + text);
|
||||||
if (hasIcon()) {
|
if (hasIcon()) {
|
||||||
Drawable drawable = context.getResources().getDrawable(icon);
|
Drawable drawable = context.getResources().getDrawable(icon);
|
||||||
|
Loading…
Reference in New Issue
Block a user