mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 22:31:16 +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,8 +232,8 @@ public class SettingsActivity extends SyncthingActivity {
|
||||||
case "listenAddresses":
|
case "listenAddresses":
|
||||||
mOptions.listenAddresses = Iterables.toArray(splitter.split((String) o), String.class);
|
mOptions.listenAddresses = Iterables.toArray(splitter.split((String) o), String.class);
|
||||||
break;
|
break;
|
||||||
case "maxRecvKbps": mOptions.maxRecvKbps = (int) o; break;
|
case "maxRecvKbps": mOptions.maxRecvKbps = Integer.parseInt((String) o); break;
|
||||||
case "maxSendKbps": mOptions.maxRecvKbps = (int) o; break;
|
case "maxSendKbps": mOptions.maxRecvKbps = Integer.parseInt((String) o); break;
|
||||||
case "natEnabled": mOptions.natEnabled = (boolean) o; break;
|
case "natEnabled": mOptions.natEnabled = (boolean) o; break;
|
||||||
case "localAnnounceEnabled": mOptions.localAnnounceEnabled = (boolean) o; break;
|
case "localAnnounceEnabled": mOptions.localAnnounceEnabled = (boolean) o; break;
|
||||||
case "globalAnnounceEnabled": mOptions.globalAnnounceEnabled = (boolean) o; break;
|
case "globalAnnounceEnabled": mOptions.globalAnnounceEnabled = (boolean) o; break;
|
||||||
|
|
Loading…
Reference in a new issue