mirror of
https://github.com/syncthing/syncthing-android.git
synced 2025-01-11 04:25:53 +00:00
Disable "sync on SSIDs" setting if "only sync on wifi" is disabled
This commit is contained in:
parent
8b778bdcb4
commit
9201509d14
1 changed files with 2 additions and 1 deletions
|
@ -112,7 +112,7 @@ public class SettingsFragment extends PreferenceFragment
|
||||||
Preference stTrace = findPreference("sttrace");
|
Preference stTrace = findPreference("sttrace");
|
||||||
Preference stReset = findPreference("streset");
|
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 useWakelock = findPreference(SyncthingService.PREF_USE_WAKE_LOCK);
|
||||||
Preference foregroundService = findPreference("run_as_foreground_service");
|
Preference foregroundService = findPreference("run_as_foreground_service");
|
||||||
Preference useTor = findPreference("use_tor");
|
Preference useTor = findPreference("use_tor");
|
||||||
|
@ -120,6 +120,7 @@ public class SettingsFragment extends PreferenceFragment
|
||||||
mSyncthingVersion = findPreference("syncthing_version");
|
mSyncthingVersion = findPreference("syncthing_version");
|
||||||
Preference appVersion = screen.findPreference("app_version");
|
Preference appVersion = screen.findPreference("app_version");
|
||||||
|
|
||||||
|
mSyncOnlyOnSSIDs.setEnabled(mSyncOnlyWifi.isChecked());
|
||||||
setPreferenceCategoryChangeListener(findPreference("category_run_conditions"), this);
|
setPreferenceCategoryChangeListener(findPreference("category_run_conditions"), this);
|
||||||
|
|
||||||
setPreferenceCategoryChangeListener(
|
setPreferenceCategoryChangeListener(
|
||||||
|
|
Loading…
Reference in a new issue