Fix ReactScrollView lints
Differential Revision: D6689492 fbshipit-source-id: c55f98f3ed25757ec192a023d2dd60c73aae8df2
This commit is contained in:
parent
bbedf2da9a
commit
b0319f3293
|
@ -14,6 +14,7 @@ import android.graphics.Color;
|
||||||
import android.graphics.Rect;
|
import android.graphics.Rect;
|
||||||
import android.graphics.drawable.ColorDrawable;
|
import android.graphics.drawable.ColorDrawable;
|
||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
|
import android.support.v4.view.ViewCompat;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.MotionEvent;
|
import android.view.MotionEvent;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
@ -269,7 +270,7 @@ public class ReactScrollView extends ScrollView implements ReactClippingViewGrou
|
||||||
0,
|
0,
|
||||||
scrollWindowHeight / 2);
|
scrollWindowHeight / 2);
|
||||||
|
|
||||||
postInvalidateOnAnimation();
|
ViewCompat.postInvalidateOnAnimation(this);
|
||||||
|
|
||||||
// END FB SCROLLVIEW CHANGE
|
// END FB SCROLLVIEW CHANGE
|
||||||
} else {
|
} else {
|
||||||
|
@ -289,11 +290,14 @@ public class ReactScrollView extends ScrollView implements ReactClippingViewGrou
|
||||||
ReactScrollViewHelper.emitScrollMomentumEndEvent(ReactScrollView.this);
|
ReactScrollViewHelper.emitScrollMomentumEndEvent(ReactScrollView.this);
|
||||||
} else {
|
} else {
|
||||||
mDoneFlinging = true;
|
mDoneFlinging = true;
|
||||||
ReactScrollView.this.postOnAnimationDelayed(this, ReactScrollViewHelper.MOMENTUM_DELAY);
|
ViewCompat.postOnAnimationDelayed(
|
||||||
|
ReactScrollView.this,
|
||||||
|
this,
|
||||||
|
ReactScrollViewHelper.MOMENTUM_DELAY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
postOnAnimationDelayed(r, ReactScrollViewHelper.MOMENTUM_DELAY);
|
ViewCompat.postOnAnimationDelayed(this, r, ReactScrollViewHelper.MOMENTUM_DELAY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue