aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorRamesh Jangama <ramesh.btech@gmail.com>2018-06-30 04:10:33 +0800
committerChristian Schneppe <kriztan@users.noreply.github.com>2018-06-29 22:10:33 +0200
commit6c80b2ba5ab1729152e38db0a71aa8dbd4adfc96 (patch)
tree71370952233b1bf75a2fd25ec24acfce3c82ec9e /src/main/java
parent6633eedbb75d5fa85186c053aa7797b5b5458fc6 (diff)
Fix for blank groupchat name issue when ShowPresenceColoredNames is selected (#209)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/pixart/messenger/ui/adapter/ListItemAdapter.java2
1 files changed, 1 insertions, 1 deletions
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<ListItem> {
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));
}