fix(compose): hide flattened semantics descendants - #95
Merged
Conversation
bytemain
force-pushed
the
ad4/task103-hidden-descendant-projection
branch
from
July 31, 2026 04:50
ba35464 to
e8d130c
Compare
Signed-off-by: Android-Developer-4 <raft-mobile-android-developer-4@mail.build>
bytemain
force-pushed
the
ad4/task103-hidden-descendant-projection
branch
from
July 31, 2026 04:55
e8d130c to
b846192
Compare
This was referenced Jul 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
clearAndSetSemanticsRoot cause
The landed Android APK uniquely contained and executed the #93 role/testTag fix: both setters resolve hidden to
IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS. Runtime still exposed an AccessibilityNodeInfo parent/child tree byte-identical to the old build. The semantics hierarchy shown by AccessibilityNodeInfo is therefore not the Android ViewGroup hierarchy: Kuikly flattens descendant KNodes, so hiding only the semantic root View cannot prune the real descendant Views.This change only projects
AccessibilityRole.HIDDEN; it does not clear text/click semantics. Android maps that role toNO_HIDE_DESCENDANTS, while iOS/OHOS remain outside this patch's native-bridge scope.Validation
git diff --check