mirror of
https://codeberg.org/anoncontributorxmr/mysu.git
synced 2024-11-22 07:22:26 +00:00
add some comments
This commit is contained in:
parent
95eb106a40
commit
663c84f3ce
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue