mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix render of ARTShape using null paths
Summary: This diff fixes the rendering of ART Shapes that uses null paths changelog: [internal] internal fix Reviewed By: JoshuaGross Differential Revision: D22780163 fbshipit-source-id: 2aded726ad47fce243ec1c28fbd4c39dd71820ef
This commit is contained in:
committed by
Facebook GitHub Bot
parent
07722cf746
commit
7ccb67a49c
+4
@@ -7,6 +7,9 @@
|
||||
|
||||
package com.facebook.react.views.view;
|
||||
|
||||
import static android.os.Build.VERSION_CODES.KITKAT;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Color;
|
||||
@@ -1244,6 +1247,7 @@ public class ReactViewBackgroundDrawable extends Drawable {
|
||||
return ReactViewBackgroundDrawable.colorFromAlphaAndRGBComponents(alpha, rgb);
|
||||
}
|
||||
|
||||
@TargetApi(KITKAT)
|
||||
public RectF getDirectionAwareBorderInsets() {
|
||||
final float borderWidth = getBorderWidthOrDefaultTo(0, Spacing.ALL);
|
||||
final float borderTopWidth = getBorderWidthOrDefaultTo(borderWidth, Spacing.TOP);
|
||||
|
||||
Reference in New Issue
Block a user