Skip to content

Commit d0fe56f

Browse files
generatedunixname1899117597419293meta-codesync[bot]
authored andcommitted
fbsource//xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll:scrollAndroid (#55945)
Summary: Pull Request resolved: #55945 Reviewed By: cortinico Differential Revision: D95365592 fbshipit-source-id: fb716cb007046aca70f04742fe41536c280110df
1 parent 43278f9 commit d0fe56f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public ReactHorizontalScrollView(Context context, @Nullable FpsListener fpsListe
158158
/**
159159
* Set all default values here as opposed to in the constructor or field defaults. It is important
160160
* that these properties are set during the constructor, but also on-demand whenever an existing
161-
* ReactTextView is recycled.
161+
* ReactHorizontalScrollView is recycled.
162162
*/
163163
private void initView() {
164164
mOverflowInset = new Rect();
@@ -552,7 +552,7 @@ protected void onLayout(boolean changed, int l, int t, int r, int b) {
552552

553553
/**
554554
* Since ReactHorizontalScrollView handles layout changes on JS side, it does not call
555-
* super.onlayout due to which mIsLayoutDirty flag in HorizontalScrollView remains true and
555+
* super.onLayout due to which mIsLayoutDirty flag in HorizontalScrollView remains true and
556556
* prevents scrolling to child when requestChildFocus is called. Overriding this method and
557557
* scrolling to child without checking any layout dirty flag. This will fix focus navigation issue
558558
* for KeyEvents which are not handled in HorizontalScrollView, for example: KEYCODE_TAB.
@@ -568,7 +568,7 @@ public void requestChildFocus(View child, View focused) {
568568
/**
569569
* In rare cases where an app overrides the built-in ReactScrollView by overriding it, and also
570570
* needs to customize scroll into view on focus behaviors, this protected method can be used to
571-
* unblocks such customization.
571+
* unblock such customization.
572572
*/
573573
protected void requestChildFocusWithoutScroll(View child, View focused) {
574574
super.requestChildFocus(child, focused);
@@ -1008,10 +1008,10 @@ protected void onDetachedFromWindow() {
10081008
return nextFocus;
10091009
}
10101010

1011-
@Nullable View nextfocusableView = findNextFocusableView(this, focused, direction);
1011+
@Nullable View nextFocusableView = findNextFocusableView(this, focused, direction);
10121012

1013-
if (nextfocusableView != null) {
1014-
return nextfocusableView;
1013+
if (nextFocusableView != null) {
1014+
return nextFocusableView;
10151015
}
10161016
}
10171017

@@ -1700,7 +1700,7 @@ private void recreateFlingAnimation(int scrollX, int maxX) {
17001700

17011701
if (mScroller != null && !mScroller.isFinished()) {
17021702
// Calculate the velocity and position of the fling animation at the time of this layout
1703-
// event, which may be later than the last ScrollView tick. These values are not commited to
1703+
// event, which may be later than the last ScrollView tick. These values are not committed to
17041704
// the underlying ScrollView, which will recalculate positions on its next tick.
17051705
int scrollerXBeforeTick = mScroller.getCurrX();
17061706
boolean hasMoreTicks = mScroller.computeScrollOffset();

0 commit comments

Comments
 (0)