diff options
author | 2010-05-07 19:57:51 +0900 | |
---|---|---|
committer | 2010-05-07 19:57:51 +0900 | |
commit | 53393240e8621aadcfd55bdbafd96c620efda479 (patch) | |
tree | 1b54ab8792a8fd3add27ad7bf2b7872e1401ba47 /java/src/com/android/inputmethod/latin/LatinKeyboard.java | |
parent | 5c7c33735df5313ecbf8e40efd72edeb0cf941b2 (diff) | |
parent | f53d0da540d4aca9c0b78938094e13a828ab1bd6 (diff) | |
download | latinime-53393240e8621aadcfd55bdbafd96c620efda479.tar.gz latinime-53393240e8621aadcfd55bdbafd96c620efda479.tar.xz latinime-53393240e8621aadcfd55bdbafd96c620efda479.zip |
Merge commit 'goog/master'
Conflicts:
native/Android.mk
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinKeyboard.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinKeyboard.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboard.java b/java/src/com/android/inputmethod/latin/LatinKeyboard.java index 32cd8a45f..6aea5d13a 100644 --- a/java/src/com/android/inputmethod/latin/LatinKeyboard.java +++ b/java/src/com/android/inputmethod/latin/LatinKeyboard.java @@ -430,6 +430,13 @@ public class LatinKeyboard extends Keyboard { Locale locale = mLanguageSwitcher.getLocaleCount() > 0 ? mLanguageSwitcher.getInputLocale() : null; + // If the language count is 1 and is the same as the system language, don't show it. + if (locale != null + && mLanguageSwitcher.getLocaleCount() == 1 + && mLanguageSwitcher.getSystemLocale().getLanguage() + .equalsIgnoreCase(locale.getLanguage())) { + locale = null; + } if (mLocale != null && mLocale.equals(locale)) return; mLocale = locale; updateSpaceBarForLocale(); |