1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-30 00:01:19 +00:00

Fixed add folder not working (fixes #147).

This commit is contained in:
Felix Ableitner 2014-10-10 13:30:44 +03:00
parent 12f7b3dbe2
commit 1b34bd9d48

View file

@ -749,7 +749,7 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener,
*/ */
public boolean editFolder(Folder folder, boolean create, Activity activity) { public boolean editFolder(Folder folder, boolean create, Activity activity) {
try { try {
JSONArray folders = mConfig.getJSONArray("Folder"); JSONArray folders = mConfig.getJSONArray("Folders");
JSONObject r = null; JSONObject r = null;
if (create) { if (create) {
r = new JSONObject(); r = new JSONObject();