Skip to content

Commit

Permalink
fbandroid/libraries/components/litho-rendercore-transitions/src/main/…
Browse files Browse the repository at this point in the history
…java/com/facebook/litho/TransitionSet.java

Reviewed By: jocelynluizzi13

Differential Revision: D64387621

fbshipit-source-id: bb00116c8733f510987857e5fe9814fd8fa69347
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Oct 15, 2024
1 parent 1fbb8a9 commit a21915c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.facebook.litho.animation.AnimationBinding;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Nullable;

/** A set of {@link Transition}s. */
@Nullsafe(Nullsafe.Mode.LOCAL)
Expand All @@ -39,7 +40,7 @@ <T extends Transition> TransitionSet(List<T> children) {
}
}

private void addChild(Transition child) {
private void addChild(@Nullable Transition child) {
if (child instanceof Transition.BaseTransitionUnitsBuilder) {
final ArrayList<? extends Transition> transitions =
((Transition.BaseTransitionUnitsBuilder) child).getTransitionUnits();
Expand Down

0 comments on commit a21915c

Please sign in to comment.