Bug 763726 - Tap on content area while tabs menu is open should close it [r=mfinkle]
authorMatt Brubeck <mbrubeck@mozilla.com>
Tue, 19 Jun 2012 14:10:42 -0700
changeset 97070 169e379daf451afc62ed9b491a1c221895b90f68
parent 97069 1cf39d1867ea4bbce712ac9f89f96f2053c3314d
child 97071 aa4c97dbbef1fc320bcc8ec6a37b872ed67b9584
push id22957
push usermh@glandium.org
push dateWed, 20 Jun 2012 08:54:19 +0000
treeherdermozilla-central@c3190d715044 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs763726
milestone16.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 763726 - Tap on content area while tabs menu is open should close it [r=mfinkle]
mobile/android/base/GeckoApp.java
--- a/mobile/android/base/GeckoApp.java
+++ b/mobile/android/base/GeckoApp.java
@@ -3019,16 +3019,18 @@ abstract public class GeckoApp
     private void connectGeckoLayerClient() {
         LayerController layerController = getLayerController();
         layerController.setLayerClient(mLayerClient);
 
         layerController.getView().getTouchEventHandler().setOnTouchListener(new View.OnTouchListener() {
             public boolean onTouch(View view, MotionEvent event) {
                 if (event == null)
                     return true;
+                if (autoHideTabs())
+                    return true;
                 GeckoAppShell.sendEventToGecko(GeckoEvent.createMotionEvent(event));
                 return true;
             }
         });
     }
 
     public boolean linkerExtract() {
         return false;