mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-23 11:21:29 +00:00
Fixed *some* repos not being displayed (fixes #100 again).
This commit is contained in:
parent
df14692fdd
commit
b74a6bd151
1 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue