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

Support new UR value (fixes #471)

This commit is contained in:
Audrius Butkevicius 2015-10-27 18:58:01 +00:00
parent 7530d3e257
commit 6deb304b02

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