Bug 763726 - Tap on content area while tabs menu is open should close it [r=mfinkle a=akeybl]
authorMatt Brubeck <mbrubeck@mozilla.com>
Tue, 19 Jun 2012 14:10:42 -0700
changeset 100285 ebfad1bf874921984f65ab41068b99f05e5b6e88
parent 100284 62dc8862639c8f5875bf42b2b8b0ee132562febb
child 100286 107ecf66334157a98fa33f67cb3f01dae1cd3661
push id1132
push usermbrubeck@mozilla.com
push dateThu, 19 Jul 2012 19:08:22 +0000
treeherdermozilla-beta@ebfad1bf8749 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, akeybl
bugs763726
milestone15.0
Bug 763726 - Tap on content area while tabs menu is open should close it [r=mfinkle a=akeybl]
mobile/android/base/GeckoApp.java
--- a/mobile/android/base/GeckoApp.java
+++ b/mobile/android/base/GeckoApp.java
@@ -2742,16 +2742,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;