From 9201509d14a82c52fd0c1d3bea82bbfd9f73a261 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 31 Oct 2016 18:31:41 +0900 Subject: [PATCH] Disable "sync on SSIDs" setting if "only sync on wifi" is disabled --- .../nutomic/syncthingandroid/fragments/SettingsFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/nutomic/syncthingandroid/fragments/SettingsFragment.java b/src/main/java/com/nutomic/syncthingandroid/fragments/SettingsFragment.java index 1f599219..539f1d05 100644 --- a/src/main/java/com/nutomic/syncthingandroid/fragments/SettingsFragment.java +++ b/src/main/java/com/nutomic/syncthingandroid/fragments/SettingsFragment.java @@ -112,7 +112,7 @@ public class SettingsFragment extends PreferenceFragment Preference stTrace = findPreference("sttrace"); Preference stReset = findPreference("streset"); - mUseRoot = (CheckBoxPreference) findPreference(SyncthingService.PREF_USE_ROOT); + mUseRoot = (CheckBoxPreference) findPreference(SyncthingService.PREF_USE_ROOT); Preference useWakelock = findPreference(SyncthingService.PREF_USE_WAKE_LOCK); Preference foregroundService = findPreference("run_as_foreground_service"); Preference useTor = findPreference("use_tor"); @@ -120,6 +120,7 @@ public class SettingsFragment extends PreferenceFragment mSyncthingVersion = findPreference("syncthing_version"); Preference appVersion = screen.findPreference("app_version"); + mSyncOnlyOnSSIDs.setEnabled(mSyncOnlyWifi.isChecked()); setPreferenceCategoryChangeListener(findPreference("category_run_conditions"), this); setPreferenceCategoryChangeListener(