Bug 1358592 - Dynamic Toolbar v3 breaks back button rendering on android tablets r=esawin draft
authorRandall Barker <rbarker@mozilla.com>
Fri, 21 Apr 2017 13:52:53 -0700
changeset 566584 e7f7fc4b88e33278e2e95061cac650d653efdc53
parent 566568 5ed2f24d732fa54640f5c796def8b57bdfd3d316
child 625362 45d6090c80f35ead5d83bd41de09d96851b31098
push id55268
push userbmo:rbarker@mozilla.com
push dateFri, 21 Apr 2017 20:54:21 +0000
reviewersesawin
bugs1358592
milestone55.0a1
Bug 1358592 - Dynamic Toolbar v3 breaks back button rendering on android tablets r=esawin MozReview-Commit-ID: 8shpFf49zRG
mobile/android/base/java/org/mozilla/gecko/toolbar/BackButton.java
--- a/mobile/android/base/java/org/mozilla/gecko/toolbar/BackButton.java
+++ b/mobile/android/base/java/org/mozilla/gecko/toolbar/BackButton.java
@@ -13,14 +13,15 @@ public class BackButton extends NavButto
         super(context, attrs);
     }
 
     @Override
     protected void onSizeChanged(int width, int height, int oldWidth, int oldHeight) {
         super.onSizeChanged(width, height, oldWidth, oldHeight);
 
         mPath.reset();
+        mPath.setFillType(Path.FillType.INVERSE_EVEN_ODD);
         mPath.addCircle(width / 2, height / 2, width / 2, Path.Direction.CW);
 
         mBorderPath.reset();
         mBorderPath.addCircle(width / 2, height / 2, (width / 2) - (mBorderWidth / 2), Path.Direction.CW);
     }
 }