From d9015233f50724294bb408f1c56715a581dc4bed Mon Sep 17 00:00:00 2001 From: Sandeep Siddhartha Date: Thu, 9 Oct 2014 16:41:25 -0700 Subject: 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 --- .../android/inputmethod/latin/settings/LocalSettingsConstants.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'java/src/com/android/inputmethod/latin/settings/LocalSettingsConstants.java') 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 }; } -- cgit v1.2.3-83-g751a