aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinKeyboard.java
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2010-05-04 13:08:44 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-05-04 13:08:44 -0700
commitdbab99296343f0359e2a59ec91e383701e185de2 (patch)
tree74f6a00a65e351aeaefcba68ab8dbef26c829a14 /java/src/com/android/inputmethod/latin/LatinKeyboard.java
parent249cfdaa647f18889f15ac328ee6d1d001abc68f (diff)
parentb1068051c775f395e2e3e75877be74fa62f2a8df (diff)
downloadlatinime-dbab99296343f0359e2a59ec91e383701e185de2.tar.gz
latinime-dbab99296343f0359e2a59ec91e383701e185de2.tar.xz
latinime-dbab99296343f0359e2a59ec91e383701e185de2.zip
am b1068051: am f0296426: Don\'t auto-select the system language in IME language selection screen.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinKeyboard.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinKeyboard.java7
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();