mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 14:21:16 +00:00
fixed crash when changing settings
This commit is contained in:
parent
60446d4381
commit
337dc146a9
2 changed files with 3 additions and 2 deletions
|
@ -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));
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue