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

Commit 2dca7ca9 authored by Svet Ganov's avatar Svet Ganov
Browse files

Respect accessibility importance for before/after node ordering.

One can set a view to be visited before/after another one for
accessibility but the before/after target views were always added
to the node info for the view regardless if they are included
for accessiilbity. Now the target viwes are reported only if they
should be included for accessibility.

Change-Id: Iba64e6f0ee0dc090c8c3e6a0a940df8c7ecd49d9
parent db291132
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -6364,7 +6364,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            }
            }
            View next = rootView.findViewInsideOutShouldExist(this,
            View next = rootView.findViewInsideOutShouldExist(this,
                    mAccessibilityTraversalBeforeId);
                    mAccessibilityTraversalBeforeId);
            if (next != null) {
            if (next != null && next.includeForAccessibility()) {
                info.setTraversalBefore(next);
                info.setTraversalBefore(next);
            }
            }
        }
        }
@@ -6376,7 +6376,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            }
            }
            View next = rootView.findViewInsideOutShouldExist(this,
            View next = rootView.findViewInsideOutShouldExist(this,
                    mAccessibilityTraversalAfterId);
                    mAccessibilityTraversalAfterId);
            if (next != null) {
            if (next != null && next.includeForAccessibility()) {
                info.setTraversalAfter(next);
                info.setTraversalAfter(next);
            }
            }
        }
        }