aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2010-04-06 11:22:19 -0700
committerAmith Yamasani <yamasani@google.com>2010-04-06 11:22:19 -0700
commitc2b8c16bdf392c81785031483d21740c5e883046 (patch)
treec09d010dac13cd75aa75f240703bea6c585de2ed /java/src
parent3e0c82ec80a69c4adbd60546c3c56c83c43ec7eb (diff)
downloadlatinime-c2b8c16bdf392c81785031483d21740c5e883046.tar.gz
latinime-c2b8c16bdf392c81785031483d21740c5e883046.tar.xz
latinime-c2b8c16bdf392c81785031483d21740c5e883046.zip
Possible fix for monkey bug: 2529350
Don't try to show the extension if the main keyboard is not showing. Change-Id: Ic3368f48f8973dedfb1ab8f4644b0766b52aed1b
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinKeyboardView.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
index 06d900f87..c25fe3942 100644
--- a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
+++ b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
@@ -276,6 +276,10 @@ public class LatinKeyboardView extends KeyboardView {
}
private boolean openExtension() {
+ // If the current keyboard is not visible, don't show the popup
+ if (!isShown()) {
+ return false;
+ }
if (((LatinKeyboard) getKeyboard()).getExtension() == 0) return false;
makePopupWindow();
mExtensionVisible = true;