1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-26 14:21:16 +00:00

Fixed global discovery server setting not working.

This commit is contained in:
Felix Ableitner 2015-05-19 19:31:30 +02:00
parent 530c156a9a
commit 9a587505be
3 changed files with 3 additions and 1 deletions

View file

@ -244,7 +244,7 @@ public class SettingsFragment extends PreferenceFragment
((Boolean) o) ? 1 : 0, false, getActivity());
} else if (mOptionsScreen.findPreference(preference.getKey()) != null) {
boolean isArray = preference.getKey().equals("listenAddress") ||
preference.getKey().equals("globalAnnServers");
preference.getKey().equals("globalAnnounceServers");
mSyncthingService.getApi().setValue(RestApi.TYPE_OPTIONS, preference.getKey(), o,
isArray, getActivity());
} else if (preference.getKey().equals(ADDRESS)) {

View file

@ -87,6 +87,7 @@ public class GetTask extends AsyncTask<String, Void, String> {
result += line;
}
br.close();
Log.v(TAG, "API call result: " + result);
return result;
}
} catch (IOException|IllegalArgumentException e) {

View file

@ -48,6 +48,7 @@ public class PostTask extends AsyncTask<String, Void, Boolean> {
try {
if (params.length > 3) {
post.setEntity(new StringEntity(params[3], HTTP.UTF_8));
Log.v(TAG, "API call parameters: " + params[3]);
}
httpclient.execute(post);
} catch (IOException|IllegalArgumentException e) {