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

Set correct value after usage report was accepted (fixes #606).

This commit is contained in:
Felix Ableitner 2016-04-01 22:03:17 +02:00
parent d47ea8aa68
commit b75f025238

View file

@ -1055,7 +1055,7 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener,
public void setUsageReportAccepted(UsageReportSetting value, Activity activity) { public void setUsageReportAccepted(UsageReportSetting value, Activity activity) {
int v = 0; int v = 0;
switch (value) { switch (value) {
case ACCEPTED: v = 1; break; case ACCEPTED: v = 2; break;
case DENIED: v = -1; break; case DENIED: v = -1; break;
} }
try { try {