Bug 949458 - Give the tab counter view its own rendering layer. r=blassey, a=bajaj
authorBrian Nicholson <bnicholson@mozilla.com>
Thu, 16 Jan 2014 13:03:34 -0800
changeset 175841 6abe246786bec4fd5c75b42902402bc194dafaec
parent 175840 42159da0079661f844111063eac0d7b0d99bfa0f
child 175842 a80824cde66013cc55bade162d1ebc67bb780005
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey, bajaj
bugs949458
milestone28.0a2
Bug 949458 - Give the tab counter view its own rendering layer. r=blassey, a=bajaj
mobile/android/base/toolbar/BrowserToolbar.java
--- a/mobile/android/base/toolbar/BrowserToolbar.java
+++ b/mobile/android/base/toolbar/BrowserToolbar.java
@@ -274,16 +274,19 @@ public class BrowserToolbar extends Geck
             mUrlBarRightEdge.getDrawable().setLevel(6000);
         }
 
         mTitle = (GeckoTextView) findViewById(R.id.url_bar_title);
         mTitlePadding = mTitle.getPaddingRight();
 
         mTabs = (ShapedButton) findViewById(R.id.tabs);
         mTabsCounter = (TabCounter) findViewById(R.id.tabs_counter);
+        if (Build.VERSION.SDK_INT >= 11) {
+            mTabsCounter.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
+        }
 
         mBack = (ImageButton) findViewById(R.id.back);
         setButtonEnabled(mBack, false);
         mForward = (ImageButton) findViewById(R.id.forward);
         setButtonEnabled(mForward, false);
 
         mFavicon = (ImageButton) findViewById(R.id.favicon);
         if (Build.VERSION.SDK_INT >= 11) {