aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/settings/SettingsValues.java
diff options
context:
space:
mode:
authorJatin Matani <jatinm@google.com>2014-12-17 00:08:14 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-12-17 00:08:14 +0000
commitaadf94944e943385de5a0c1b40781af8a89d1ea6 (patch)
tree06aeff38c90805e053a292aecd5d5fdb82d46f4e /java/src/com/android/inputmethod/latin/settings/SettingsValues.java
parent40add58effd385b176928bd0160d5856c874fc01 (diff)
parentbc4ae6bdc0249f9282efea5d1fe7ccfefd6f93b0 (diff)
downloadlatinime-aadf94944e943385de5a0c1b40781af8a89d1ea6.tar.gz
latinime-aadf94944e943385de5a0c1b40781af8a89d1ea6.tar.xz
latinime-aadf94944e943385de5a0c1b40781af8a89d1ea6.zip
am bc4ae6bd: Passing account info to dictionaryFacilitator
* commit 'bc4ae6bdc0249f9282efea5d1fe7ccfefd6f93b0': Passing account info to dictionaryFacilitator
Diffstat (limited to 'java/src/com/android/inputmethod/latin/settings/SettingsValues.java')
-rw-r--r--java/src/com/android/inputmethod/latin/settings/SettingsValues.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/settings/SettingsValues.java b/java/src/com/android/inputmethod/latin/settings/SettingsValues.java
index 5f1a7af44..0669026d8 100644
--- a/java/src/com/android/inputmethod/latin/settings/SettingsValues.java
+++ b/java/src/com/android/inputmethod/latin/settings/SettingsValues.java
@@ -36,6 +36,7 @@ import java.util.Arrays;
import java.util.Locale;
import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
/**
* When you call the constructor of this class, you may want to change the current system locale by
@@ -120,6 +121,8 @@ public class SettingsValues {
public final float mKeyPreviewDismissEndXScale;
public final float mKeyPreviewDismissEndYScale;
+ @Nullable public final String mAccount;
+
public SettingsValues(final Context context, final SharedPreferences prefs, final Resources res,
@Nonnull final InputAttributes inputAttributes) {
mLocale = res.getConfiguration().locale;
@@ -176,6 +179,8 @@ public class SettingsValues {
mPlausibilityThreshold = Settings.readPlausibilityThreshold(res);
mGestureInputEnabled = Settings.readGestureInputEnabled(prefs, res);
mGestureTrailEnabled = prefs.getBoolean(Settings.PREF_GESTURE_PREVIEW_TRAIL, true);
+ mAccount = prefs.getString(LocalSettingsConstants.PREF_ACCOUNT_NAME,
+ null /* default */);
mGestureFloatingPreviewTextEnabled = !mInputAttributes.mDisableGestureFloatingPreviewText
&& prefs.getBoolean(Settings.PREF_GESTURE_FLOATING_PREVIEW_TEXT, true);
mPhraseGestureEnabled = Settings.readPhraseGestureEnabled(prefs, res);