From 2cf2fdbc04bc5309f6942ed464ad61cd06a26ce8 Mon Sep 17 00:00:00 2001 From: Andy Street Date: Wed, 14 Sep 2016 11:11:32 -0700 Subject: [PATCH] Update ScrollView ctor's to take a ReactContext Reviewed By: lexs Differential Revision: D3863966 fbshipit-source-id: 8580f65663c58552304cfd6043794eae0190757d --- .../com/facebook/react/views/scroll/ReactScrollView.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java index 9cf8a8fa22e..09c93809124 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java @@ -13,7 +13,6 @@ import javax.annotation.Nullable; import java.lang.reflect.Field; -import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Rect; @@ -25,6 +24,7 @@ import android.view.View; import android.widget.OverScroller; import android.widget.ScrollView; +import com.facebook.react.bridge.ReactContext; import com.facebook.react.common.ReactConstants; import com.facebook.react.uimanager.MeasureSpecAssertions; import com.facebook.react.uimanager.events.NativeGestureUtil; @@ -59,11 +59,11 @@ public class ReactScrollView extends ScrollView implements ReactClippingViewGrou private @Nullable Drawable mEndBackground; private int mEndFillColor = Color.TRANSPARENT; - public ReactScrollView(Context context) { + public ReactScrollView(ReactContext context) { this(context, null); } - public ReactScrollView(Context context, @Nullable FpsListener fpsListener) { + public ReactScrollView(ReactContext context, @Nullable FpsListener fpsListener) { super(context); mFpsListener = fpsListener;