From 13870c04241c96b22f490f25fdf9125dcfa70198 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Thu, 21 Jan 2016 23:11:46 +0100 Subject: [PATCH] Allow empty device names. --- .../nutomic/syncthingandroid/fragments/DeviceFragment.java | 5 ----- src/main/res/values/strings.xml | 3 --- 2 files changed, 8 deletions(-) diff --git a/src/main/java/com/nutomic/syncthingandroid/fragments/DeviceFragment.java b/src/main/java/com/nutomic/syncthingandroid/fragments/DeviceFragment.java index 0d3b3884..57bf8fcf 100644 --- a/src/main/java/com/nutomic/syncthingandroid/fragments/DeviceFragment.java +++ b/src/main/java/com/nutomic/syncthingandroid/fragments/DeviceFragment.java @@ -317,11 +317,6 @@ public class DeviceFragment extends Fragment implements .show(); 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); getActivity().finish(); return true; diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 7d964449..19d86e23 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -190,9 +190,6 @@ The device ID must not be empty - - The device name must not be empty - Scan QR Code