aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2015-05-26 22:30:41 +0200
committerlookshe <github@lookshe.org>2015-06-19 23:12:24 +0200
commit553f41a2dbc068a8a43f613e088713cd3ec7680e (patch)
treedd6fa0fe95f88977b2c92f8bb75b3417f1edfdd2 /src/main
parenta73ce32e272675d899b5029b63233b4e5ef616c9 (diff)
Show Online status in contact list with respect to SHOW_ONLINE_STATUS preference
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/adapter/ListItemAdapter.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/ListItemAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/ListItemAdapter.java
index 5bc67b8b..10500bfc 100644
--- a/src/main/java/eu/siacs/conversations/ui/adapter/ListItemAdapter.java
+++ b/src/main/java/eu/siacs/conversations/ui/adapter/ListItemAdapter.java
@@ -58,8 +58,10 @@ public class ListItemAdapter extends ArrayAdapter<ListItem> {
view = inflater.inflate(R.layout.contact, parent, false);
}
- TextView tvStatus = (TextView) view.findViewById(R.id.contact_status);
- tvStatus.setBackgroundColor(item.getStatusColor());
+ if (Settings.SHOW_ONLINE_STATUS) {
+ TextView tvStatus = (TextView) view.findViewById(R.id.contact_status);
+ tvStatus.setBackgroundColor(item.getStatusColor());
+ }
TextView tvName = (TextView) view.findViewById(R.id.contact_display_name);
TextView tvJid = (TextView) view.findViewById(R.id.contact_jid);