am c2b8c16b: Possible fix for monkey bug: 2529350

Merge commit 'c2b8c16bdf392c81785031483d21740c5e883046' into froyo-plus-aosp

* commit 'c2b8c16bdf392c81785031483d21740c5e883046':
  Possible fix for monkey bug: 2529350
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
index 37dda5e..6ba2095 100644
--- a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
+++ b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
@@ -276,6 +276,10 @@
     }
 
     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;