diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-08-26 15:55:54 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-08-26 15:55:54 -0700 |
commit | 65f135f3a5ac07fd5b5298b80bbdfef9d812f4b4 (patch) | |
tree | 1ca69eb2c479540f5222e58f7be1c2ad0a4b8a09 /src | |
parent | f7d8cea4419ea4697b8ca4526730f7b2b114ad9e (diff) | |
download | dsub-65f135f3a5ac07fd5b5298b80bbdfef9d812f4b4.tar.gz dsub-65f135f3a5ac07fd5b5298b80bbdfef9d812f4b4.tar.bz2 dsub-65f135f3a5ac07fd5b5298b80bbdfef9d812f4b4.zip |
#387 Add setting to enable sync on a per server basis
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/activity/SettingsActivity.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/activity/SettingsActivity.java b/src/github/daneren2005/dsub/activity/SettingsActivity.java index 48f67dd5..e40a62d2 100644 --- a/src/github/daneren2005/dsub/activity/SettingsActivity.java +++ b/src/github/daneren2005/dsub/activity/SettingsActivity.java @@ -394,6 +394,12 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer serverTagPreference.setTitle(R.string.settings_browse_by_tags); serverPasswordPreference.setDialogTitle(R.string.settings_server_password); + final CheckBoxPreference serverSyncPreference = new CheckBoxPreference(this); + serverSyncPreference.setKey(Constants.PREFERENCES_KEY_SERVER_SYNC + instance); + serverSyncPreference.setChecked(Util.isSyncEnabled(this, instance)); + serverSyncPreference.setSummary(R.string.settings_server_sync_summary); + serverSyncPreference.setTitle(R.string.settings_server_sync); + final Preference serverOpenBrowser = new Preference(this); serverOpenBrowser.setKey(Constants.PREFERENCES_KEY_OPEN_BROWSER); serverOpenBrowser.setPersistent(false); @@ -461,6 +467,7 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer screen.addPreference(serverUsernamePreference); screen.addPreference(serverPasswordPreference); screen.addPreference(serverTagPreference); + screen.addPreference(serverSyncPreference); screen.addPreference(serverTestConnectionPreference); screen.addPreference(serverOpenBrowser); screen.addPreference(serverRemoveServerPreference); |