Skip to content

Commit

Permalink
fbandroid/libraries/components/litho-sections-widget/src/main/java/co…
Browse files Browse the repository at this point in the history
…m/facebook/litho/sections/widget/RecyclerCollectionEventsController.java

Differential Revision: D61010178

fbshipit-source-id: 535446ac98531c1e56fa646c7986bb4d32c07798
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Aug 11, 2024
1 parent da0ed3a commit 8a66c42
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import android.view.View;
import androidx.recyclerview.widget.RecyclerView;
import com.facebook.infer.annotation.Nullsafe;
import com.facebook.litho.sections.SectionTree;
import com.facebook.litho.widget.LayoutInfo;
import com.facebook.litho.widget.RecyclerEventsController;
Expand All @@ -35,6 +36,7 @@
* An controller that can be passed as {@link com.facebook.litho.annotations.Prop} to a
* RecyclerCollection component to trigger events from outside the component hierarchy.
*/
@Nullsafe(Nullsafe.Mode.LOCAL)
public class RecyclerCollectionEventsController extends RecyclerEventsController {

@Nullable private SectionTree mSectionTree;
Expand Down Expand Up @@ -161,6 +163,7 @@ public void requestSmoothScroll(Object id, int offset, SmoothScrollAlignmentType
* @param snapTarget target that takes into account snapping behavior.
*/
private void requestScrollToPositionInner(boolean animated, int defaultTarget, int snapTarget) {
// NULLSAFE_FIXME[Parameter Not Nullable]
requestScrollToPositionInner(animated, defaultTarget, snapTarget, null);
}

Expand Down

0 comments on commit 8a66c42

Please sign in to comment.