Bug 717902 - Form autocomplete pop-up with the available suggestions is not displayed in landscape mode when HKB is used. r=blassey
authorAlex Pakhotin <alexp@mozilla.com>
Mon, 16 Jan 2012 17:58:56 -0800
changeset 84647 e25139fcf302c9d736730404e60dcb0c1004a016
parent 84646 ec8ded10b50cb68da6be4d4f47dbbdd489d4ee78
child 84648 60add44419ef23753c389a979019b75546326f93
push id21868
push usermak77@bonardo.net
push dateTue, 17 Jan 2012 15:23:07 +0000
treeherdermozilla-central@ff1bedd7d463 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey
bugs717902
milestone12.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 717902 - Form autocomplete pop-up with the available suggestions is not displayed in landscape mode when HKB is used. r=blassey
mobile/android/base/GeckoApp.java
--- a/mobile/android/base/GeckoApp.java
+++ b/mobile/android/base/GeckoApp.java
@@ -951,17 +951,19 @@ abstract public class GeckoApp
                         }
                     });
                 } else {
                     final JSONArray rect = message.getJSONArray("rect");
                     final double zoom = message.getDouble("zoom");
                     mMainHandler.post(new Runnable() {
                         public void run() {
                             // Don't show autocomplete popup when using fullscreen VKB
-                            if (!GeckoInputConnection.mIMELandscapeFS)
+                            InputMethodManager imm =
+                                (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
+                            if (!imm.isFullscreenMode())
                                 mAutoCompletePopup.show(suggestions, rect, zoom);
                         }
                     });
                 }
             } else if (event.equals("Permissions:Data")) {
                 String host = message.getString("host");
                 JSONArray permissions = message.getJSONArray("permissions");
                 showSiteSettingsDialog(host, permissions);