aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-08-26 15:55:54 -0700
committerScott Jackson <daneren2005@gmail.com>2014-08-26 15:55:54 -0700
commit65f135f3a5ac07fd5b5298b80bbdfef9d812f4b4 (patch)
tree1ca69eb2c479540f5222e58f7be1c2ad0a4b8a09 /src/github/daneren2005
parentf7d8cea4419ea4697b8ca4526730f7b2b114ad9e (diff)
downloaddsub-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/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/activity/SettingsActivity.java7
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);