From b75f02523818d55ca728ad3771ae96aa614c7e7e Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 1 Apr 2016 22:03:17 +0200 Subject: [PATCH] Set correct value after usage report was accepted (fixes #606). --- .../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 25ac33eb..7a4071be 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/RestApi.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/RestApi.java @@ -1055,7 +1055,7 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener, public void setUsageReportAccepted(UsageReportSetting value, Activity activity) { int v = 0; switch (value) { - case ACCEPTED: v = 1; break; + case ACCEPTED: v = 2; break; case DENIED: v = -1; break; } try {