From 6deb304b020cdab85dbd23dff27df809342163d6 Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Tue, 27 Oct 2015 18:58:01 +0000 Subject: [PATCH] Support new UR value (fixes #471) --- .../java/com/nutomic/syncthingandroid/syncthing/RestApi.java | 3 ++- 1 file changed, 2 insertions(+), 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 a0fa9580..bdaed1f9 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/RestApi.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/RestApi.java @@ -974,7 +974,8 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener, try { switch (mConfig.getJSONObject(TYPE_OPTIONS).getInt("urAccepted")) { case 0: return UsageReportSetting.UNDECIDED; - case 1: return UsageReportSetting.ACCEPTED; + case 1: return UsageReportSetting.UNDECIDED; + case 2: return UsageReportSetting.ACCEPTED; case -1: return UsageReportSetting.DENIED; default: throw new RuntimeException("Invalid usage report value"); }