From 60d01aea894353d92823f32d44a2c7e610b87f41 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 8 Mar 2016 00:51:50 +0100 Subject: [PATCH] Fixed infinite loop when changing folder settings. --- .../nutomic/syncthingandroid/fragments/FolderFragment.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/nutomic/syncthingandroid/fragments/FolderFragment.java b/src/main/java/com/nutomic/syncthingandroid/fragments/FolderFragment.java index 856a5742..e5e88986 100644 --- a/src/main/java/com/nutomic/syncthingandroid/fragments/FolderFragment.java +++ b/src/main/java/com/nutomic/syncthingandroid/fragments/FolderFragment.java @@ -252,6 +252,11 @@ public class FolderFragment extends Fragment } private void updateViewsAndSetListeners() { + mIdView.removeTextChangedListener(mIdTextWatcher); + mPathView.removeTextChangedListener(mPathTextWatcher); + mFolderMasterView.setOnCheckedChangeListener(null); + mKeepVersionsDialogFragment.setOnValueChangeListener(null); + // Update views mIdView.setText(mFolder.id); mPathView.setText(mFolder.path);