1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-27 13:21:30 +00:00

fixed crash when changing settings

This commit is contained in:
Felix Ableitner 2016-10-30 17:07:56 +09:00
parent 60446d4381
commit 337dc146a9
2 changed files with 3 additions and 2 deletions

View file

@ -165,7 +165,7 @@ public class SettingsFragment extends PreferenceFragment
mGui = mApi.getGui();
Joiner joiner = Joiner.on(", ");
//mDeviceName.setTitle(mApi.getLocalDevice().name);
mDeviceName.setText(mApi.getLocalDevice().name);
mListenAddresses.setText(joiner.join(mOptions.listenAddresses));
mMaxRecvKbps.setText(Integer.toString(mOptions.maxRecvKbps));
mMaxSendKbps.setText(Integer.toString(mOptions.maxSendKbps));

View file

@ -282,7 +282,8 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener,
public void editDevice(Device newDevice) {
removeDeviceInternal(newDevice.deviceID);
addDevice(newDevice, null);
mConfig.devices.add(newDevice);
sendConfig();
}
public void editFolder(Folder newFolder) {