mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-23 12:51:16 +00:00
Allow empty device names.
This commit is contained in:
parent
d062f07820
commit
13870c0424
2 changed files with 0 additions and 8 deletions
|
@ -317,11 +317,6 @@ public class DeviceFragment extends Fragment implements
|
||||||
.show();
|
.show();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (isEmpty(mDevice.name)) {
|
|
||||||
Toast.makeText(getActivity(), R.string.device_name_required, Toast.LENGTH_LONG)
|
|
||||||
.show();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
mSyncthingService.getApi().editDevice(mDevice, getActivity(), this);
|
mSyncthingService.getApi().editDevice(mDevice, getActivity(), this);
|
||||||
getActivity().finish();
|
getActivity().finish();
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -190,9 +190,6 @@
|
||||||
<!-- Toast shown when trying to create a device with an empty ID -->
|
<!-- Toast shown when trying to create a device with an empty ID -->
|
||||||
<string name="device_id_required">The device ID must not be empty</string>
|
<string name="device_id_required">The device ID must not be empty</string>
|
||||||
|
|
||||||
<!-- Toast shown when trying to create a device with an empty name -->
|
|
||||||
<string name="device_name_required">The device name must not be empty</string>
|
|
||||||
|
|
||||||
<!-- Content description for device ID qr code icon -->
|
<!-- Content description for device ID qr code icon -->
|
||||||
<string name="scan_qr_code_description">Scan QR Code</string>
|
<string name="scan_qr_code_description">Scan QR Code</string>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue