mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 06:11:19 +00:00
Merge pull request #472 from AudriusButkevicius/patch-2
Support new UR value (fixes #471)
This commit is contained in:
commit
de52ca553f
1 changed files with 2 additions and 1 deletions
|
@ -974,7 +974,8 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener,
|
||||||
try {
|
try {
|
||||||
switch (mConfig.getJSONObject(TYPE_OPTIONS).getInt("urAccepted")) {
|
switch (mConfig.getJSONObject(TYPE_OPTIONS).getInt("urAccepted")) {
|
||||||
case 0: return UsageReportSetting.UNDECIDED;
|
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;
|
case -1: return UsageReportSetting.DENIED;
|
||||||
default: throw new RuntimeException("Invalid usage report value");
|
default: throw new RuntimeException("Invalid usage report value");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue