Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 7f083e5

Browse files
authored
Don't implicitly fall through in switch statement (#5964)
1 parent c7ce6dd commit 7f083e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shell/platform/android/io/flutter/view/AccessibilityBridge.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,7 @@ public void onMessage(Object message, BasicMessageChannel.Reply<Object> reply) {
842842
ROOT_NODE_ID, AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED);
843843
e.getText().add((String) data.get("message"));
844844
sendAccessibilityEvent(e);
845+
break;
845846
}
846847
// Requires that the node id provided corresponds to a live region, or TalkBack will
847848
// ignore the event. The event will cause talkback to read out the new label even
@@ -852,6 +853,7 @@ public void onMessage(Object message, BasicMessageChannel.Reply<Object> reply) {
852853
return;
853854
}
854855
sendAccessibilityEvent(nodeId, AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED);
856+
break;
855857
}
856858
}
857859
}

0 commit comments

Comments
 (0)