From 4e5c85b6bb33b2635fb88184c3562046a65b495b Mon Sep 17 00:00:00 2001 From: Horcrux Date: Wed, 20 Apr 2016 12:49:08 -0700 Subject: [PATCH] [ART]fix stroke bug Summary:Fix a stroke bug. Stroke path will be coverd by fill layer. Fix it by stroke path after fill is done Closes https://github.com/facebook/react-native/pull/7092 Differential Revision: D3203188 Pulled By: spicyj fb-gh-sync-id: 9b950372822da4dc520552c0c31aa3435750a0a3 fbshipit-source-id: 9b950372822da4dc520552c0c31aa3435750a0a3 --- .../java/com/facebook/react/views/art/ARTShapeShadowNode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTShapeShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTShapeShadowNode.java index b66066b41..ce8b5e136 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTShapeShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/art/ARTShapeShadowNode.java @@ -101,10 +101,10 @@ public class ARTShapeShadowNode extends ARTVirtualNode { throw new JSApplicationIllegalArgumentException( "Shapes should have a valid path (d) prop"); } - if (setupStrokePaint(paint, opacity)) { + if (setupFillPaint(paint, opacity)) { canvas.drawPath(mPath, paint); } - if (setupFillPaint(paint, opacity)) { + if (setupStrokePaint(paint, opacity)) { canvas.drawPath(mPath, paint); } restoreCanvas(canvas);