From 505673bf712916111706a02d14c0c52b42e51e7d Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 30 Jun 2014 00:47:13 +0200 Subject: [PATCH] Fixed repo size being always 0 (fixes #42). --- .../java/com/nutomic/syncthingandroid/syncthing/GetTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/nutomic/syncthingandroid/syncthing/GetTask.java b/src/main/java/com/nutomic/syncthingandroid/syncthing/GetTask.java index e97d1a16..0e7e185b 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/GetTask.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/GetTask.java @@ -50,7 +50,7 @@ public class GetTask extends AsyncTask { HttpClient httpclient = new DefaultHttpClient(); if (params.length == 5) { LinkedList urlParams = new LinkedList(); - urlParams.add(new BasicNameValuePair(params[2], params[3])); + urlParams.add(new BasicNameValuePair(params[3], params[4])); fullUri += "?" + URLEncodedUtils.format(urlParams, "utf-8"); } HttpGet get = new HttpGet(fullUri);