diff options
author | steckbrief <steckbrief@chefmail.de> | 2015-05-26 22:28:31 +0200 |
---|---|---|
committer | lookshe <github@lookshe.org> | 2015-06-19 23:11:44 +0200 |
commit | a73ce32e272675d899b5029b63233b4e5ef616c9 (patch) | |
tree | 2cdda057a950d2c1c76c2972c21a478702bdc267 /src/main/java/eu/siacs/conversations/ui/adapter | |
parent | b3b4a2902e37fb072e800f5dff0392755f5d4501 (diff) |
Status color added to "create conversation" (refers to ticket #22 in flyspray)
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/adapter/ListItemAdapter.java | 4 |
1 files changed, 4 insertions, 0 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 7b20b55f..5bc67b8b 100644 --- a/src/main/java/eu/siacs/conversations/ui/adapter/ListItemAdapter.java +++ b/src/main/java/eu/siacs/conversations/ui/adapter/ListItemAdapter.java @@ -57,6 +57,10 @@ public class ListItemAdapter extends ArrayAdapter<ListItem> { if (view == null) { view = inflater.inflate(R.layout.contact, parent, false); } + + 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); ImageView picture = (ImageView) view.findViewById(R.id.contact_photo); |