Skip to content

Commit

Permalink
clean up ReactViewBackgroundDrawable
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlntn committed Feb 2, 2024
1 parent c6f8d99 commit b072f06
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit b072f06

Please sign in to comment.