From 1b34bd9d48f31e328153e4f9e710e82afaf79735 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 10 Oct 2014 13:30:44 +0300 Subject: [PATCH] Fixed add folder not working (fixes #147). --- .../java/com/nutomic/syncthingandroid/syncthing/RestApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/nutomic/syncthingandroid/syncthing/RestApi.java b/src/main/java/com/nutomic/syncthingandroid/syncthing/RestApi.java index 7dae38f6..d6a5c35d 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/RestApi.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/RestApi.java @@ -749,7 +749,7 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener, */ public boolean editFolder(Folder folder, boolean create, Activity activity) { try { - JSONArray folders = mConfig.getJSONArray("Folder"); + JSONArray folders = mConfig.getJSONArray("Folders"); JSONObject r = null; if (create) { r = new JSONObject();