From 573533a35f9af21fe79d47cda8135313fd4eeef5 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Thu, 19 May 2016 11:40:55 +0900 Subject: [PATCH] Fixed device toggle (fixes #647). --- .../com/nutomic/syncthingandroid/fragments/FolderFragment.java | 2 +- src/main/res/layout/item_device_form.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/nutomic/syncthingandroid/fragments/FolderFragment.java b/src/main/java/com/nutomic/syncthingandroid/fragments/FolderFragment.java index 76570c85..29933ec5 100644 --- a/src/main/java/com/nutomic/syncthingandroid/fragments/FolderFragment.java +++ b/src/main/java/com/nutomic/syncthingandroid/fragments/FolderFragment.java @@ -99,7 +99,7 @@ public class FolderFragment extends Fragment mFolder.readOnly = isChecked; mFolderNeedsToUpdate = true; break; - case R.id.share_device_id: + case R.id.device_toggle: RestApi.Device device = (RestApi.Device) view.getTag(); if (isChecked) { mFolder.deviceIds.add(device.deviceID); diff --git a/src/main/res/layout/item_device_form.xml b/src/main/res/layout/item_device_form.xml index 444327f4..910808e9 100644 --- a/src/main/res/layout/item_device_form.xml +++ b/src/main/res/layout/item_device_form.xml @@ -2,6 +2,7 @@