mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-30 00:01:19 +00:00
Initialize run conditions with correct enabled state
This commit is contained in:
parent
d9c2442a14
commit
9e9397be26
1 changed files with 4 additions and 0 deletions
|
@ -92,6 +92,10 @@ public class SettingsFragment extends PreferenceFragment
|
|||
mSyncOnlyOnSSIDs =
|
||||
(WifiSsidPreference) findPreference(SyncthingService.PREF_SYNC_ONLY_WIFI_SSIDS);
|
||||
|
||||
mSyncOnlyCharging.setEnabled(mAlwaysRunInBackground.isChecked());
|
||||
mSyncOnlyWifi.setEnabled(mAlwaysRunInBackground.isChecked());
|
||||
mSyncOnlyOnSSIDs.setEnabled(mSyncOnlyWifi.isChecked());
|
||||
|
||||
mDeviceName = (EditTextPreference) findPreference("deviceName");
|
||||
mListenAddresses = (EditTextPreference) findPreference("listenAddresses");
|
||||
mMaxRecvKbps = (EditTextPreference) findPreference("maxRecvKbps");
|
||||
|
|
Loading…
Reference in a new issue