mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-29 15:51:17 +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 {
|
||||
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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue