Permalink
Browse files

Fix ReactScrollView lints

Differential Revision: D6689492

fbshipit-source-id: c55f98f3ed25757ec192a023d2dd60c73aae8df2
  • Loading branch information...
ayc1 authored and facebook-github-bot committed Jan 10, 2018
1 parent bbedf2d commit b0319f3293b553c105b813dd12bff7d55940e60b
Showing with 7 additions and 3 deletions.
  1. +7 −3 ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java
@@ -14,6 +14,7 @@
import android.graphics.Rect;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.support.v4.view.ViewCompat;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
@@ -269,7 +270,7 @@ public void fling(int velocityY) {
0,
scrollWindowHeight / 2);

postInvalidateOnAnimation();
ViewCompat.postInvalidateOnAnimation(this);

// END FB SCROLLVIEW CHANGE
} else {
@@ -289,11 +290,14 @@ public void run() {
ReactScrollViewHelper.emitScrollMomentumEndEvent(ReactScrollView.this);
} else {
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);
}
}

0 comments on commit b0319f3

Please sign in to comment.