1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 03:11:30 +00:00

Fixed *some* repos not being displayed (fixes #100 again).

This commit is contained in:
Felix Ableitner 2014-08-28 19:20:11 +02:00
parent df14692fdd
commit b74a6bd151

View file

@ -456,8 +456,8 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener {
r.Invalid = json.getString("Invalid"); r.Invalid = json.getString("Invalid");
r.Nodes = new ArrayList<Node>(); r.Nodes = new ArrayList<Node>();
JSONArray nodes = json.getJSONArray("Nodes"); JSONArray nodes = json.getJSONArray("Nodes");
for (int j = 0; i < nodes.length(); i++) { for (int j = 0; j < nodes.length(); j++) {
JSONObject n = nodes.getJSONObject(i); JSONObject n = nodes.getJSONObject(j);
String id = n.getString("NodeID"); String id = n.getString("NodeID");
for (Node n2 : getNodes()) { for (Node n2 : getNodes()) {
if (n2.NodeID.equals(id)) { if (n2.NodeID.equals(id)) {