Track
This commit is contained in:
parent
662425fe09
commit
ece75eddbb
1 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ public class OsMoGroups implements OsMoReactor, OsmoTrackerListener {
|
|||
private static final String DELETED = "deleted";
|
||||
private static final String GROUP_TRACKER_ID = "group_tracker_id";
|
||||
private static final String LAST_ONLINE = "last_online";
|
||||
private static final String TRACKS = "tracks";
|
||||
private static final String TRACK = "track";
|
||||
|
||||
private OsMoTracker tracker;
|
||||
private OsMoService service;
|
||||
|
@ -288,8 +288,8 @@ public class OsMoGroups implements OsMoReactor, OsmoTrackerListener {
|
|||
delta.add(device);
|
||||
}
|
||||
}
|
||||
if(obj.has(TRACKS)){
|
||||
JSONArray ar = obj.getJSONArray(TRACKS);
|
||||
if(obj.has(TRACK)){
|
||||
JSONArray ar = obj.getJSONArray(TRACK);
|
||||
JSONObject[] a = new JSONObject[ar.length()];
|
||||
for(int i = 0; i < a.length; i++) {
|
||||
a[i] = (JSONObject) ar.get(i);
|
||||
|
|
Loading…
Reference in a new issue