mirror of
https://codeberg.org/r4v3r23/mysu.git
synced 2024-11-09 20:53:47 +01:00
Fix some stuff
This commit is contained in:
parent
beef898be4
commit
db3c4c424b
@ -99,6 +99,7 @@ public class AddNodeBottomSheetDialog extends BottomSheetDialogFragment {
|
||||
|
||||
if (listener != null) {
|
||||
listener.onNodeAdded();
|
||||
dismiss();
|
||||
}
|
||||
} catch (JSONException e) {
|
||||
throw new RuntimeException(e);
|
||||
|
@ -117,10 +117,10 @@ public class EditNodeBottomSheetDialog extends BottomSheetDialogFragment {
|
||||
jsonObject.put("name", nodeName);
|
||||
|
||||
listener.onNodeEdited(Node.fromJson(nodeJson), Node.fromJson(jsonObject));
|
||||
dismiss();
|
||||
} catch (JSONException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
dismiss();
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -79,6 +79,8 @@ public class NodeSelectionBottomSheetDialog extends BottomSheetDialogFragment im
|
||||
if (node != null) {
|
||||
nodes.add(node);
|
||||
jsonArray.put(i, node.toJson().toString());
|
||||
} else {
|
||||
jsonArray.remove(i);
|
||||
}
|
||||
} catch (JSONException ex) {
|
||||
throw new RuntimeException(ex);
|
||||
|
Loading…
Reference in New Issue
Block a user