Skip to content

Commit

Permalink
Fix ReactScrollView lints
Browse files Browse the repository at this point in the history
Differential Revision: D6689492

fbshipit-source-id: c55f98f3ed25757ec192a023d2dd60c73aae8df2
  • Loading branch information
ayc1 authored and facebook-github-bot committed Jan 10, 2018
1 parent bbedf2d commit b0319f3
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -269,7 +270,7 @@ public void fling(int velocityY) {
0,
scrollWindowHeight / 2);

postInvalidateOnAnimation();
ViewCompat.postInvalidateOnAnimation(this);

// END FB SCROLLVIEW CHANGE
} else {
Expand All @@ -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);
}
}

Expand Down

0 comments on commit b0319f3

Please sign in to comment.