Skip to content

Commit

Permalink
Don't implicitly fall through in switch statement (flutter#5964)
Browse files Browse the repository at this point in the history
  • Loading branch information
tvolkert authored Aug 7, 2018
1 parent c7ce6dd commit 7f083e5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,7 @@ public void onMessage(Object message, BasicMessageChannel.Reply<Object> reply) {
ROOT_NODE_ID, AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED);
e.getText().add((String) data.get("message"));
sendAccessibilityEvent(e);
break;
}
// Requires that the node id provided corresponds to a live region, or TalkBack will
// ignore the event. The event will cause talkback to read out the new label even
Expand All @@ -852,6 +853,7 @@ public void onMessage(Object message, BasicMessageChannel.Reply<Object> reply) {
return;
}
sendAccessibilityEvent(nodeId, AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED);
break;
}
}
}
Expand Down

0 comments on commit 7f083e5

Please sign in to comment.