From 6c80b2ba5ab1729152e38db0a71aa8dbd4adfc96 Mon Sep 17 00:00:00 2001 From: Ramesh Jangama Date: Sat, 30 Jun 2018 04:10:33 +0800 Subject: Fix for blank groupchat name issue when ShowPresenceColoredNames is selected (#209) --- src/main/java/de/pixart/messenger/ui/adapter/ListItemAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/de/pixart/messenger/ui/adapter/ListItemAdapter.java b/src/main/java/de/pixart/messenger/ui/adapter/ListItemAdapter.java index 75d105484..e94b7c1bc 100644 --- a/src/main/java/de/pixart/messenger/ui/adapter/ListItemAdapter.java +++ b/src/main/java/de/pixart/messenger/ui/adapter/ListItemAdapter.java @@ -111,7 +111,7 @@ public class ListItemAdapter extends ArrayAdapter { viewHolder.tags.setAlpha(INACTIVE_ALPHA); } else { if (ShowPresenceColoredNames()) { - viewHolder.name.setTextColor(color); + viewHolder.name.setTextColor(color != 0 ? color : Color.get(activity, R.attr.text_Color_Main)); } else { viewHolder.name.setTextColor(Color.get(activity, R.attr.text_Color_Main)); } -- cgit v1.2.3