Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a5f3e40 authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android (Google) Code Review
Browse files

Merge "Virtual nodes are always important for accessibility." into jb-dev

parents 28d9911a 52a62370
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -135,7 +135,12 @@ public class AccessibilityRecord {
     */
    public void setSource(View root, int virtualDescendantId) {
        enforceNotSealed();
        final boolean important = (root != null) ? root.isImportantForAccessibility() : true;
        final boolean important;
        if (virtualDescendantId == UNDEFINED) {
            important = (root != null) ? root.isImportantForAccessibility() : true;
        } else {
            important = true;
        }
        setBooleanProperty(PROPERTY_IMPORTANT_FOR_ACCESSIBILITY, important);
        mSourceWindowId = (root != null) ? root.getAccessibilityWindowId() : UNDEFINED;
        final int rootViewId = (root != null) ? root.getAccessibilityViewId() : UNDEFINED;