mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-23 03:11:30 +00:00
Fixed crash when setting rate limit
This commit is contained in:
parent
b01eb9a877
commit
94bad4c98a
1 changed files with 9 additions and 9 deletions
|
@ -232,18 +232,18 @@ public class SettingsActivity extends SyncthingActivity {
|
|||
case "listenAddresses":
|
||||
mOptions.listenAddresses = Iterables.toArray(splitter.split((String) o), String.class);
|
||||
break;
|
||||
case "maxRecvKbps": mOptions.maxRecvKbps = (int) o; break;
|
||||
case "maxSendKbps": mOptions.maxRecvKbps = (int) o; break;
|
||||
case "natEnabled": mOptions.natEnabled = (boolean) o; break;
|
||||
case "localAnnounceEnabled": mOptions.localAnnounceEnabled = (boolean) o; break;
|
||||
case "globalAnnounceEnabled": mOptions.globalAnnounceEnabled = (boolean) o; break;
|
||||
case "relaysEnabled": mOptions.relaysEnabled = (boolean) o; break;
|
||||
case "maxRecvKbps": mOptions.maxRecvKbps = Integer.parseInt((String) o); break;
|
||||
case "maxSendKbps": mOptions.maxRecvKbps = Integer.parseInt((String) o); break;
|
||||
case "natEnabled": mOptions.natEnabled = (boolean) o; break;
|
||||
case "localAnnounceEnabled": mOptions.localAnnounceEnabled = (boolean) o; break;
|
||||
case "globalAnnounceEnabled": mOptions.globalAnnounceEnabled = (boolean) o; break;
|
||||
case "relaysEnabled": mOptions.relaysEnabled = (boolean) o; break;
|
||||
case "globalAnnounceServers":
|
||||
mOptions.globalAnnounceServers = Iterables.toArray(splitter.split((String) o), String.class);
|
||||
break;
|
||||
case "address": mGui.address = (String) o; break;
|
||||
case "user": mGui.user = (String) o; break;
|
||||
case "password": mGui.password = (String) o; break;
|
||||
case "address": mGui.address = (String) o; break;
|
||||
case "user": mGui.user = (String) o; break;
|
||||
case "password": mGui.password = (String) o; break;
|
||||
case "urAccepted":
|
||||
mOptions.urAccepted = ((boolean) o)
|
||||
? Options.USAGE_REPORTING_ACCEPTED
|
||||
|
|
Loading…
Reference in a new issue