diff options
author | steckbrief <steckbrief@chefmail.de> | 2016-02-23 13:12:48 +0100 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2016-02-23 13:12:48 +0100 |
commit | 1c983b3b0f92c547ab4b3ed0248b198d8e4dcd78 (patch) | |
tree | 8c4258fed1b5676146e07d5189893ea94dbad6b0 /src/main/java/eu/siacs/conversations/ui/adapter/ConversationAdapter.java | |
parent | cbec38f02df862ded4e89cdff7e0cdc53bdf083b (diff) |
Changed access to presences according to new Presence representation in C
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/adapter/ConversationAdapter.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/ConversationAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/ConversationAdapter.java index 9c3b5430..2e40717a 100644 --- a/src/main/java/eu/siacs/conversations/ui/adapter/ConversationAdapter.java +++ b/src/main/java/eu/siacs/conversations/ui/adapter/ConversationAdapter.java @@ -74,15 +74,15 @@ public class ConversationAdapter extends ArrayAdapter<Conversation> { String color = "#000000"; if (conversation.getMode() == Conversation.MODE_SINGLE) { switch (conversation.getContact().getMostAvailableStatus()) { - case Presences.ONLINE: - case Presences.CHAT: + case ONLINE: + case CHAT: color = "#259B23"; break; - case Presences.AWAY: - case Presences.XA: + case AWAY: + case XA: color = "#FF9800"; break; - case Presences.DND: + case DND: color = "#E51C23"; break; } |