From 1c983b3b0f92c547ab4b3ed0248b198d8e4dcd78 Mon Sep 17 00:00:00 2001 From: steckbrief Date: Tue, 23 Feb 2016 13:12:48 +0100 Subject: Changed access to presences according to new Presence representation in C --- .../conversationsplus/ui/adapter/PresencesArrayAdapter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/de/thedevstack/conversationsplus/ui') diff --git a/src/main/java/de/thedevstack/conversationsplus/ui/adapter/PresencesArrayAdapter.java b/src/main/java/de/thedevstack/conversationsplus/ui/adapter/PresencesArrayAdapter.java index 424c2a12..e14d7f6b 100644 --- a/src/main/java/de/thedevstack/conversationsplus/ui/adapter/PresencesArrayAdapter.java +++ b/src/main/java/de/thedevstack/conversationsplus/ui/adapter/PresencesArrayAdapter.java @@ -44,10 +44,10 @@ public class PresencesArrayAdapter extends ArrayAdapter { private static Presence[] getPresenceArray(Presences presences) { ArrayList presenceArrayList = new ArrayList<>(); if (null != presences && null != presences.getPresences() && !presences.getPresences().isEmpty()) { - for (Map.Entry entry : presences.getPresences().entrySet()) { + for (Map.Entry entry : presences.getPresences().entrySet()) { Presence p = new Presence(); p.resource = entry.getKey(); - p.status = entry.getValue(); + p.status = entry.getValue().getStatus(); presenceArrayList.add(p); } presenceArrayList.trimToSize(); @@ -58,5 +58,5 @@ public class PresencesArrayAdapter extends ArrayAdapter { class Presence { String resource; - int status; + eu.siacs.conversations.entities.Presence.Status status; } -- cgit v1.2.3