mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 21:53:30 +00:00
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.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 class ReactScrollView extends ScrollView implements ReactClippingViewGrou
|
||||
0,
|
||||
scrollWindowHeight / 2);
|
||||
|
||||
postInvalidateOnAnimation();
|
||||
ViewCompat.postInvalidateOnAnimation(this);
|
||||
|
||||
// END FB SCROLLVIEW CHANGE
|
||||
} else {
|
||||
@ -289,11 +290,14 @@ public class ReactScrollView extends ScrollView implements ReactClippingViewGrou
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user