aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/de/pixart/messenger/ui/adapter/ListItemAdapter.java8
1 files changed, 6 insertions, 2 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 9873431ef..00c612e20 100644
--- a/src/main/java/de/pixart/messenger/ui/adapter/ListItemAdapter.java
+++ b/src/main/java/de/pixart/messenger/ui/adapter/ListItemAdapter.java
@@ -96,14 +96,18 @@ public class ListItemAdapter extends ArrayAdapter<ListItem> {
color = tag.getColor();
}
}
- if (offline || !ShowPresenceColoredNames()) {
+ if (offline) {
tvName.setTextColor(ContextCompat.getColor(activity, R.color.black87));
tvName.setAlpha(INACTIVE_ALPHA);
tvJid.setAlpha(INACTIVE_ALPHA);
picture.setAlpha(INACTIVE_ALPHA);
tagLayout.setAlpha(INACTIVE_ALPHA);
} else {
- tvName.setTextColor(color);
+ if (ShowPresenceColoredNames()) {
+ tvName.setTextColor(color);
+ } else {
+ tvName.setTextColor(ContextCompat.getColor(activity, R.color.black87));
+ }
tvName.setAlpha(ACTIVE_ALPHA);
tvJid.setAlpha(ACTIVE_ALPHA);
picture.setAlpha(ACTIVE_ALPHA);