From b072f0607918623288daec28bc4f0a41ea13b4ad Mon Sep 17 00:00:00 2001 From: Ryan Linton Date: Fri, 2 Feb 2024 09:41:04 -0700 Subject: [PATCH] clean up ReactViewBackgroundDrawable --- .../react/views/view/ReactViewBackgroundDrawable.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java index 68025da2515ed3..0d696b7a84083f 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java @@ -48,7 +48,7 @@ */ public class ReactViewBackgroundDrawable extends Drawable { - private static final long DEFAULT_BORDER_COLOR = Color.valueOf(Color.BLACK).pack(); + private static final long DEFAULT_BORDER_COLOR = Color.pack(Color.BLACK); // ~0 == 0xFFFFFFFF, all bits set to 1. private static final int ALL_BITS_SET = ~0; // 0 == 0x00000000, all bits set to 0. @@ -333,7 +333,7 @@ public boolean onResolvedLayoutDirectionChanged(int layoutDirection) { @VisibleForTesting public int getColor() { - return Color.valueOf(mColor).toArgb(); + return Color.toArgb(mColor); } private void drawRoundedBackgroundWithBorders(Canvas canvas) {