Reverted commit D3870895

Reviewed By: foghina

Differential Revision: D3870895

fbshipit-source-id: 305534c752d1041bf03e27f28d6b5bf0a66a5a61
This commit is contained in:
Fred Liu 2016-09-15 11:54:08 -07:00 committed by Facebook Github Bot 5
parent 5c3f9547c6
commit b7ee6adade
2 changed files with 2 additions and 20 deletions

View File

@ -10,7 +10,6 @@ android_library(
react_native_target('java/com/facebook/react/touch:touch'),
react_native_target('java/com/facebook/react/uimanager:uimanager'),
react_native_target('java/com/facebook/react/uimanager/annotations:annotations'),
react_native_dep('libraries/fbcore/src/main/java/com/facebook/common/logging:logging'),
react_native_dep('third-party/java/infer-annotations:infer-annotations'),
react_native_dep('third-party/java/jsr-305:jsr-305'),
react_native_dep('third-party/android/support/v4:lib-support-v4'),

View File

@ -20,9 +20,7 @@ import android.view.View;
import android.widget.OverScroller;
import android.widget.ScrollView;
import com.facebook.common.logging.FLog;
import com.facebook.infer.annotation.Assertions;
import com.facebook.react.bridge.JSApplicationCausedNativeException;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.common.ReactConstants;
@ -31,7 +29,6 @@ import com.facebook.react.uimanager.UIManagerModule;
import com.facebook.react.uimanager.events.NativeGestureUtil;
import com.facebook.react.uimanager.ReactClippingViewGroup;
import com.facebook.react.uimanager.ReactClippingViewGroupHelper;
import com.facebook.react.uimanager.ViewGroupManager;
import com.facebook.react.views.view.ReactViewGroup;
import com.facebook.react.views.view.ReactViewManager;
@ -50,7 +47,6 @@ public class ReactScrollView extends ScrollView implements ReactClippingViewGrou
private static Field sScrollerField;
private static boolean sTriedToGetScrollerField = false;
private static boolean sHasWarnedAboutStickyHeaders = false;
private final OnScrollDispatchHelper mOnScrollDispatchHelper = new OnScrollDispatchHelper();
private final OverScroller mScroller;
@ -67,7 +63,7 @@ public class ReactScrollView extends ScrollView implements ReactClippingViewGrou
private @Nullable Drawable mEndBackground;
private int mEndFillColor = Color.TRANSPARENT;
private @Nullable int[] mStickyHeaderIndices;
private ViewGroupManager mViewManager;
private ReactViewManager mViewManager;
private final ReactViewGroup.ChildDrawingOrderDelegate mContentDrawingOrderDelegate =
new ReactViewGroup.ChildDrawingOrderDelegate() {
@ -85,7 +81,7 @@ public class ReactScrollView extends ScrollView implements ReactClippingViewGrou
super(context);
UIManagerModule uiManager = context.getNativeModule(UIManagerModule.class);
mViewManager = (ViewGroupManager) uiManager.getUIImplementation().getViewManager(ReactViewManager.REACT_CLASS);
mViewManager = (ReactViewManager) uiManager.getUIImplementation().getViewManager(ReactViewManager.REACT_CLASS);
mFpsListener = fpsListener;
@ -354,19 +350,6 @@ public class ReactScrollView extends ScrollView implements ReactClippingViewGrou
View previousHeader = null;
View currentHeader = null;
View nextHeader = null;
View firstChild = getChildAt(0);
if (!(firstChild instanceof ReactViewGroup)) {
if (!sHasWarnedAboutStickyHeaders) {
FLog.w(
ReactConstants.TAG,
"'stickyHeaderIndices' isn't a supported prop type for this UIImplementation (nodes). " +
"It'd be awesome if you could help us support it by sending a diff or PR :)");
sHasWarnedAboutStickyHeaders = true;
}
return;
}
ReactViewGroup contentView = (ReactViewGroup) getChildAt(0);
if (contentView == null) {
return;