Bug 833812: BrowserToolbar should consume events, that aren't consumed by its children. [r=mfinkle] [a=bbajaj]
authorSriram Ramasubramanian <sriram@mozilla.com>
Mon, 28 Jan 2013 15:22:35 -0800
changeset 127380 b51c3c2d1a0b319feb1026e76d043f489b4ba778
parent 127379 b7e0f49442fc4b8453b76eb1d1f257b26cde37ec
child 127381 4c2ef2454be2ef6529640ec2c2d73358d3b73c9c
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, bbajaj
bugs833812
milestone20.0a2
Bug 833812: BrowserToolbar should consume events, that aren't consumed by its children. [r=mfinkle] [a=bbajaj]
mobile/android/base/BrowserToolbar.java
--- a/mobile/android/base/BrowserToolbar.java
+++ b/mobile/android/base/BrowserToolbar.java
@@ -122,16 +122,20 @@ public class BrowserToolbar implements V
     }
 
     public void from(LinearLayout layout) {
         if (mLayout != null) {
             // make sure we retain the visibility property on rotation
             layout.setVisibility(mLayout.getVisibility());
         }
         mLayout = layout;
+        mLayout.setOnClickListener(new View.OnClickListener() {
+            public void onClick(View v) {
+            }
+        });
 
         mShowSiteSecurity = false;
         mShowReader = false;
 
         mAddressBarBg = (BrowserToolbarBackground) mLayout.findViewById(R.id.address_bar_bg);
         mAddressBarView = mLayout.findViewById(R.id.addressbar);
         mAddressBarViewOffset = mActivity.getResources().getDimensionPixelSize(R.dimen.addressbar_offset_left);
         mAddressBarViewOffsetNoForward = mActivity.getResources().getDimensionPixelSize(R.dimen.addressbar_offset_left_noforward);