Bug 949458 - Give the tab counter view its own rendering layer. r=blassey
authorBrian Nicholson <bnicholson@mozilla.com>
Thu, 16 Jan 2014 13:03:34 -0800
changeset 163880 52058b81ff1fc95c4ab97e325c0b1de0805486fc
parent 163879 0ea571a61e42c66cbb43f24f15903751550d1bf2
child 163881 5327f5b72d9800f6d72da085c616e834cd3b9b8a
push idunknown
push userunknown
push dateunknown
reviewersblassey
bugs949458
milestone29.0a1
Bug 949458 - Give the tab counter view its own rendering layer. r=blassey
mobile/android/base/toolbar/BrowserToolbar.java
--- a/mobile/android/base/toolbar/BrowserToolbar.java
+++ b/mobile/android/base/toolbar/BrowserToolbar.java
@@ -185,16 +185,19 @@ public class BrowserToolbar extends Geck
         // This will clip the right edge's image at 60% of its width
         mUrlBarRightEdge = (ImageView) findViewById(R.id.url_bar_right_edge);
         if (mUrlBarRightEdge != null) {
             mUrlBarRightEdge.getDrawable().setLevel(6000);
         }
 
         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);
 
         mMenu = (GeckoImageButton) findViewById(R.id.menu);
         mMenuIcon = (GeckoImageView) findViewById(R.id.menu_icon);