aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/settings/LocalSettingsConstants.java
diff options
context:
space:
mode:
authorSandeep Siddhartha <sansid@google.com>2014-10-09 16:41:25 -0700
committerSandeep Siddhartha <sansid@google.com>2014-10-10 16:03:54 -0700
commitd9015233f50724294bb408f1c56715a581dc4bed (patch)
treee9609fa9518fb442a48996e134d845a90cb69aba /java/src/com/android/inputmethod/latin/settings/LocalSettingsConstants.java
parent1e10d29bc8975ea45ca5e3bdf1936aa418161bcb (diff)
downloadlatinime-d9015233f50724294bb408f1c56715a581dc4bed.tar.gz
latinime-d9015233f50724294bb408f1c56715a581dc4bed.tar.xz
latinime-d9015233f50724294bb408f1c56715a581dc4bed.zip
Set up a sync preference and policy for syncing [2]
- Adds a preference for enabling sync, which controls the sync behavior - Make the ProductionFlags depend on appropriate flags to guarantee that we don't mess things when flipping some flags - Preferences now control the "syncable" property of the provider thereby controlling the policy and when this entry shows up in system settings. Bug: 17464069 Change-Id: I1d58351188518c1ae9f1f9e147b5ea15d32a3427
Diffstat (limited to 'java/src/com/android/inputmethod/latin/settings/LocalSettingsConstants.java')
-rw-r--r--java/src/com/android/inputmethod/latin/settings/LocalSettingsConstants.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/settings/LocalSettingsConstants.java b/java/src/com/android/inputmethod/latin/settings/LocalSettingsConstants.java
index 71d6065e0..f4f2e03c7 100644
--- a/java/src/com/android/inputmethod/latin/settings/LocalSettingsConstants.java
+++ b/java/src/com/android/inputmethod/latin/settings/LocalSettingsConstants.java
@@ -27,6 +27,9 @@ public class LocalSettingsConstants {
// Preference key for the current account.
// Do not restore.
public static final String PREF_ACCOUNT_NAME = "pref_account_name";
+ // Preference key for enabling cloud sync feature.
+ // Do not restore.
+ public static final String PREF_ENABLE_CLOUD_SYNC = "pref_enable_cloud_sync";
// List of preference keys to skip from being restored by backup agent.
// These preferences are tied to a device and hence should not be restored.
@@ -36,6 +39,7 @@ public class LocalSettingsConstants {
// shared preferences which makes it non-trivial to move these out to
// a different shared preferences file.
public static final String[] PREFS_TO_SKIP_RESTORING = new String[] {
- PREF_ACCOUNT_NAME
+ PREF_ACCOUNT_NAME,
+ PREF_ENABLE_CLOUD_SYNC
};
}