diff options
author | 2014-10-10 18:19:05 +0000 | |
---|---|---|
committer | 2014-10-10 18:19:05 +0000 | |
commit | 2c7a1c91c994ca61e938bc16f6518816456f2e6b (patch) | |
tree | 1fef7b56848e514bd1faec8065ba9c04816391e1 /java/src/com/android/inputmethod/latin/settings/LocalSettingsConstants.java | |
parent | 287d2dcab5f83cea51fc78efa684b209205efdba (diff) | |
parent | 1e10d29bc8975ea45ca5e3bdf1936aa418161bcb (diff) | |
download | latinime-2c7a1c91c994ca61e938bc16f6518816456f2e6b.tar.gz latinime-2c7a1c91c994ca61e938bc16f6518816456f2e6b.tar.xz latinime-2c7a1c91c994ca61e938bc16f6518816456f2e6b.zip |
am 1e10d29b: Don\'t restore device specific preferences
* commit '1e10d29bc8975ea45ca5e3bdf1936aa418161bcb':
Don't restore device specific preferences
Diffstat (limited to 'java/src/com/android/inputmethod/latin/settings/LocalSettingsConstants.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/settings/LocalSettingsConstants.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/settings/LocalSettingsConstants.java b/java/src/com/android/inputmethod/latin/settings/LocalSettingsConstants.java new file mode 100644 index 000000000..71d6065e0 --- /dev/null +++ b/java/src/com/android/inputmethod/latin/settings/LocalSettingsConstants.java @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2014 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.inputmethod.latin.settings; + +/** + * Collection of device specific preference constants. + */ +public class LocalSettingsConstants { + // Preference file for storing preferences that are tied to a device + // and are not backed up. + public static final String PREFS_FILE = "local_prefs"; + + // Preference key for the current account. + // Do not restore. + public static final String PREF_ACCOUNT_NAME = "pref_account_name"; + + // 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. + // e.g. account name. + // Ideally they could have been kept in a separate file that wasn't backed up + // however the preference UI currently only deals with the default + // 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 + }; +} |