Skip to content

Commit

Permalink
Add missing needsAccessibilityDelegate and copyInto
Browse files Browse the repository at this point in the history
Summary: forgot to add in the pervious diff

Reviewed By: pentiumao

Differential Revision: D65475080

fbshipit-source-id: 1341ee882e923abdf1147addd436ad06c1b15dce
  • Loading branch information
Anna Powolny authored and facebook-github-bot committed Nov 5, 2024
1 parent 677e150 commit e34c8e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions litho-core/src/main/java/com/facebook/litho/NodeInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ class NodeInfo : Equivalence<NodeInfo> {
_accessibilityRoleDescription != null ||
_focusOrder != null ||
_labeledBy != null ||
_minDurationBetweenContentChangesMillis != null ||
screenReaderFocusState != SCREEN_READER_FOCUS_UNSET

fun setFocusable(isFocusable: Boolean) {
Expand Down Expand Up @@ -834,6 +835,9 @@ class NodeInfo : Equivalence<NodeInfo> {
if (flags and PFLAG_LABELED_BY_IS_SET != 0L) {
target.labeledBy = labeledBy
}
if (flags and PFLAG_MIN_DURATION_BETWEEN_CHANGES_IS_SET != 0L) {
target.minDurationBetweenContentChangesMillis = minDurationBetweenContentChangesMillis
}
}

fun copyInto(target: ViewAttributes) {
Expand Down

0 comments on commit e34c8e3

Please sign in to comment.