From 6c2d2d234589292109f6b0af04b3b4b1cc60f356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sat, 17 Nov 2018 22:51:02 +0100 Subject: [PATCH] fixed requery only getting first message --- .../simplecloudnotifier/model/ServerCommunication.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/src/main/java/com/blackforestbytes/simplecloudnotifier/model/ServerCommunication.java b/android/app/src/main/java/com/blackforestbytes/simplecloudnotifier/model/ServerCommunication.java index 680e388..68087f9 100644 --- a/android/app/src/main/java/com/blackforestbytes/simplecloudnotifier/model/ServerCommunication.java +++ b/android/app/src/main/java/com/blackforestbytes/simplecloudnotifier/model/ServerCommunication.java @@ -346,7 +346,7 @@ public class ServerCommunication JSONArray arr = json.getJSONArray("data"); for (int i = 0; i < count; i++) { - JSONObject o = arr.getJSONObject(0); + JSONObject o = arr.getJSONObject(i); long time = json_lng(o, "timestamp"); String title = json_str(o, "title");