|
15 | 15 | import android.content.Context;
|
16 | 16 | import android.graphics.BlendMode;
|
17 | 17 | import android.graphics.Canvas;
|
18 |
| -import android.graphics.Color; |
19 | 18 | import android.graphics.Paint;
|
20 | 19 | import android.graphics.Rect;
|
21 | 20 | import android.graphics.drawable.Drawable;
|
|
33 | 32 | import com.facebook.react.bridge.ReactNoCrashSoftException;
|
34 | 33 | import com.facebook.react.bridge.ReactSoftExceptionLogger;
|
35 | 34 | import com.facebook.react.bridge.UiThreadUtil;
|
36 |
| -import com.facebook.react.common.annotations.VisibleForTesting; |
37 | 35 | import com.facebook.react.config.ReactFeatureFlags;
|
38 | 36 | import com.facebook.react.touch.OnInterceptTouchEventListener;
|
39 | 37 | import com.facebook.react.touch.ReactHitSlopView;
|
@@ -72,7 +70,6 @@ public class ReactViewGroup extends ViewGroup
|
72 | 70 | ReactOverflowViewWithInset {
|
73 | 71 |
|
74 | 72 | private static final int ARRAY_CAPACITY_INCREMENT = 12;
|
75 |
| - private static final int DEFAULT_BACKGROUND_COLOR = Color.TRANSPARENT; |
76 | 73 | private static final LayoutParams sDefaultLayoutParam = new ViewGroup.LayoutParams(0, 0);
|
77 | 74 | private final Rect mOverflowInset = new Rect();
|
78 | 75 |
|
@@ -760,12 +757,6 @@ private boolean needsIsolatedLayer() {
|
760 | 757 | return false;
|
761 | 758 | }
|
762 | 759 |
|
763 |
| - @VisibleForTesting |
764 |
| - public int getBackgroundColor() { |
765 |
| - @Nullable Integer color = BackgroundStyleApplicator.getBackgroundColor(this); |
766 |
| - return color == null ? DEFAULT_BACKGROUND_COLOR : color; |
767 |
| - } |
768 |
| - |
769 | 760 | @Override
|
770 | 761 | public @Nullable Rect getHitSlopRect() {
|
771 | 762 | return mHitSlopRect;
|
|
0 commit comments