Don't implicitly fall through in switch statement (#5964)

This commit is contained in:
Todd Volkert 2018-08-07 13:18:26 -07:00 committed by GitHub
parent c7ce6dd69c
commit 7f083e54fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -842,6 +842,7 @@ class AccessibilityBridge
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
@ -852,6 +853,7 @@ class AccessibilityBridge
return;
}
sendAccessibilityEvent(nodeId, AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED);
break;
}
}
}