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

Merge pull request #472 from AudriusButkevicius/patch-2

Support new UR value (fixes #471)
This commit is contained in:
Felix Ableitner 2015-10-28 00:24:21 +01:00
commit de52ca553f

View file

@ -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");
}