Skip to content

Commit

Permalink
Fix comp error
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-semyonov committed Mar 7, 2024
1 parent 3e554f2 commit 215c75f
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1037,17 +1037,14 @@ internal class AccessibilityMediator(
fun onSemanticsChange() {
debugLogger?.log("onSemanticsChange")

invalidationKind = SemanticsTreeInvalidationKind.COMPLETE
invalidationChannel.trySend(Unit)
invalidationChannel.trySend(SemanticsTreeInvalidation.SemanticsChanged)
}

fun onLayoutChange(nodeId: Int) {
debugLogger?.log("onLayoutChange (nodeId=$nodeId)")

invalidatedBoundsNodeIds.add(nodeId)

// unprocessedInvalidationKind will be set to BOUNDS in sync(), it's a strict subset of COMPLETE
invalidationChannel.trySend(Unit)
invalidationChannel.trySend(SemanticsTreeInvalidation.BoundsChanged(nodeId))
}

fun dispose() {
Expand Down

0 comments on commit 215c75f

Please sign in to comment.