Skip to content

Commit

Permalink
Fix traversal order for a11y scrolling (flutter#4726)
Browse files Browse the repository at this point in the history
Fixes flutter/flutter#14987, but why?
  • Loading branch information
goderbauer authored Mar 1, 2018
1 parent 5e2738f commit a4b1fcc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ public AccessibilityNodeInfo createAccessibilityNodeInfo(int virtualViewId) {

result.setSelected(object.hasFlag(Flag.IS_SELECTED));
result.setText(object.getValueLabelHint());
result.setTraversalAfter(mOwner,
object.previousNodeId == -1 ? View.NO_ID : object.previousNodeId);
if (object.previousNodeId != -1)
result.setTraversalAfter(mOwner, object.previousNodeId);

// Accessibility Focus
if (mA11yFocusedObject != null && mA11yFocusedObject.id == virtualViewId) {
Expand Down

0 comments on commit a4b1fcc

Please sign in to comment.