Bug 833812: BrowserToolbar should consume events, that aren't consumed by its children. [r=mfinkle]
authorSriram Ramasubramanian <sriram@mozilla.com>
Mon, 28 Jan 2013 15:22:35 -0800
changeset 120390 796e350770b8e69a0a0b19c31091f1c70c2f87e7
parent 120389 944d0425759256ed26c4f0e17557890d91e22846
child 120391 abfd67b9c024364947c585e1c52ebc5c8302bbd1
push id24251
push userryanvm@gmail.com
push dateThu, 31 Jan 2013 20:56:22 +0000
treeherdermozilla-central@683b08dc1afd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs833812
milestone21.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 833812: BrowserToolbar should consume events, that aren't consumed by its children. [r=mfinkle]
mobile/android/base/BrowserToolbar.java
--- a/mobile/android/base/BrowserToolbar.java
+++ b/mobile/android/base/BrowserToolbar.java
@@ -120,16 +120,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);