aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/ui/adapter
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-04-13 23:17:03 +0200
committerChristian Schneppe <christian@pix-art.de>2017-04-13 23:17:03 +0200
commit12db8cb60b29c54030e32eef6a8c4b1954b1ade1 (patch)
treed98e433c4f36a7d3017fd13e83954ced39bbb35f /src/main/java/de/pixart/messenger/ui/adapter
parente2ef2fe45feb650be610a56fd900b48105214ed3 (diff)
set colored contact status preference correctly
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui/adapter')
-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);