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 167939 3fe1886a46c81dc90ebfc6766d19a57d9d2b5231
parent 167938 5931195ee9578dc03296f5548ca00faedaa4579d
child 167940 2b2c5ce02de4857d466c741b60e1570c232d1502
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey, bajaj
bugs949458
milestone27.0
Bug 949458 - Give the tab counter view its own rendering layer. r=blassey, a=bajaj
mobile/android/base/BrowserToolbar.java
--- a/mobile/android/base/BrowserToolbar.java
+++ b/mobile/android/base/BrowserToolbar.java
@@ -295,16 +295,20 @@ 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);
         mForward = (ImageButton) findViewById(R.id.forward);
         mForward.setEnabled(false); // initialize the forward button to not be enabled
 
         mFavicon = (ImageButton) findViewById(R.id.favicon);
         if (Build.VERSION.SDK_INT >= 16)
             mFavicon.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO);
         mFaviconSize = Math.round(res.getDimension(R.dimen.browser_toolbar_favicon_size));