mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
EZ refactor in ReactViewBackgroundDrawable
Summary: EZ refactor in ReactViewBackgroundDrawable to remove an unnecessary class variable changelog: [internal] Internal Reviewed By: RSNara Differential Revision: D22874851 fbshipit-source-id: 16808809b196cba0dab5c9972359d7786939a7ce
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f8f53e595c
commit
aee1ae9e92
+2
-3
@@ -86,8 +86,6 @@ public class ReactViewBackgroundDrawable extends Drawable {
|
||||
private @Nullable Spacing mBorderAlpha;
|
||||
private @Nullable BorderStyle mBorderStyle;
|
||||
|
||||
/* Used for rounded border and rounded background */
|
||||
private @Nullable PathEffect mPathEffectForBorderStyle;
|
||||
private @Nullable Path mInnerClipPathForBorderRadius;
|
||||
private @Nullable Path mOuterClipPathForBorderRadius;
|
||||
private @Nullable Path mPathForBorderRadiusOutline;
|
||||
@@ -970,7 +968,8 @@ public class ReactViewBackgroundDrawable extends Drawable {
|
||||
|
||||
/** Set type of border */
|
||||
private void updatePathEffect() {
|
||||
mPathEffectForBorderStyle =
|
||||
// Used for rounded border and rounded background
|
||||
PathEffect mPathEffectForBorderStyle =
|
||||
mBorderStyle != null ? BorderStyle.getPathEffect(mBorderStyle, getFullBorderWidth()) : null;
|
||||
|
||||
mPaint.setPathEffect(mPathEffectForBorderStyle);
|
||||
|
||||
Reference in New Issue
Block a user