mirror of
https://codeberg.org/r4v3r23/mysu.git
synced 2024-11-12 22:23:55 +01:00
add some comments
This commit is contained in:
parent
95eb106a40
commit
663c84f3ce
@ -59,6 +59,7 @@ public class PrefService extends ServiceBase {
|
|||||||
String nodesArray = PrefService.getInstance().getString(Constants.PREF_CUSTOM_NODES, "[]");
|
String nodesArray = PrefService.getInstance().getString(Constants.PREF_CUSTOM_NODES, "[]");
|
||||||
JSONArray jsonArray = new JSONArray(nodesArray);
|
JSONArray jsonArray = new JSONArray(nodesArray);
|
||||||
for (int i = 0; i < jsonArray.length(); i++) {
|
for (int i = 0; i < jsonArray.length(); i++) {
|
||||||
|
//check custom nodes
|
||||||
String jsonNodeString = jsonArray.getString(i);
|
String jsonNodeString = jsonArray.getString(i);
|
||||||
Node savedNode = Node.fromString(jsonNodeString);
|
Node savedNode = Node.fromString(jsonNodeString);
|
||||||
if(savedNode != null) {
|
if(savedNode != null) {
|
||||||
@ -69,6 +70,7 @@ public class PrefService extends ServiceBase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(nodeString.isEmpty()) {
|
if(nodeString.isEmpty()) {
|
||||||
|
//not in custom nodes, maybe in default nodes?
|
||||||
for (DefaultNodes defaultNode : DefaultNodes.values()) {
|
for (DefaultNodes defaultNode : DefaultNodes.values()) {
|
||||||
Node node = Node.fromString(defaultNode.getUri());
|
Node node = Node.fromString(defaultNode.getUri());
|
||||||
if(node != null) {
|
if(node != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user