aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCache.java
diff options
context:
space:
mode:
authorDan Zivkovic <zivkovic@google.com>2015-02-20 15:13:40 -0800
committerDan Zivkovic <zivkovic@google.com>2015-02-23 10:21:20 -0800
commit08f3cdb3c87e56ac62f5ac3c573beade592b4b06 (patch)
tree50e6e5a7c25994699a79fc168c7669e178bd41bd /java/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCache.java
parent1c11f3fe0ef5e92af3f8c1c9f9e157ea400c6c35 (diff)
downloadlatinime-08f3cdb3c87e56ac62f5ac3c573beade592b4b06.tar.gz
latinime-08f3cdb3c87e56ac62f5ac3c573beade592b4b06.tar.xz
latinime-08f3cdb3c87e56ac62f5ac3c573beade592b4b06.zip
Hide app icon when keyboard is a system app.
The objective is to show an app icon when the user installs the keyboard from the Play Store, but not show the icon when it comes from the system image. The latter rule applies to AOSP keyboards and to the Google Keyboard on a Nexus device. This change partially reverts ag/613096. Bug 19001197. Change-Id: Icb202deffe9f1ab2bde9b3c9d221347da6793a19
Diffstat (limited to 'java/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCache.java')
-rw-r--r--java/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCache.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCache.java b/java/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCache.java
index e9b26c688..b813af4c2 100644
--- a/java/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCache.java
+++ b/java/src/com/android/inputmethod/latin/DictionaryFacilitatorLruCache.java
@@ -35,7 +35,7 @@ public class DictionaryFacilitatorLruCache {
private final String mDictionaryNamePrefix;
private final Object mLock = new Object();
private final DictionaryFacilitator mDictionaryFacilitator;
- private boolean mUseContactsDictionary = false;
+ private boolean mUseContactsDictionary;
private Locale mLocale;
public DictionaryFacilitatorLruCache(final Context context, final String dictionaryNamePrefix) {
@@ -71,13 +71,13 @@ public class DictionaryFacilitatorLruCache {
mDictionaryNamePrefix, null /* listener */);
}
- public void setUseContactsDictionary(final boolean useContectsDictionary) {
+ public void setUseContactsDictionary(final boolean useContactsDictionary) {
synchronized (mLock) {
- if (mUseContactsDictionary == useContectsDictionary) {
+ if (mUseContactsDictionary == useContactsDictionary) {
// The value has not been changed.
return;
}
- mUseContactsDictionary = useContectsDictionary;
+ mUseContactsDictionary = useContactsDictionary;
resetDictionariesForLocaleLocked();
waitForLoadingMainDictionary(mDictionaryFacilitator);
}