add some comments

This commit is contained in:
pokkst 2022-10-15 01:11:48 -05:00
parent 95eb106a40
commit 663c84f3ce
No known key found for this signature in database
GPG Key ID: 90C2ED85E67A50FF

View File

@ -59,6 +59,7 @@ public class PrefService extends ServiceBase {
String nodesArray = PrefService.getInstance().getString(Constants.PREF_CUSTOM_NODES, "[]");
JSONArray jsonArray = new JSONArray(nodesArray);
for (int i = 0; i < jsonArray.length(); i++) {
//check custom nodes
String jsonNodeString = jsonArray.getString(i);
Node savedNode = Node.fromString(jsonNodeString);
if(savedNode != null) {
@ -69,6 +70,7 @@ public class PrefService extends ServiceBase {
}
}
if(nodeString.isEmpty()) {
//not in custom nodes, maybe in default nodes?
for (DefaultNodes defaultNode : DefaultNodes.values()) {
Node node = Node.fromString(defaultNode.getUri());
if(node != null) {