From 7f083e54fe7545d31cd69715440912c9e6553dbf Mon Sep 17 00:00:00 2001 From: Todd Volkert Date: Tue, 7 Aug 2018 13:18:26 -0700 Subject: [PATCH] Don't implicitly fall through in switch statement (#5964) --- shell/platform/android/io/flutter/view/AccessibilityBridge.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/platform/android/io/flutter/view/AccessibilityBridge.java b/shell/platform/android/io/flutter/view/AccessibilityBridge.java index 2d4060094c005..40ebf9d0feffb 100644 --- a/shell/platform/android/io/flutter/view/AccessibilityBridge.java +++ b/shell/platform/android/io/flutter/view/AccessibilityBridge.java @@ -842,6 +842,7 @@ public void onMessage(Object message, BasicMessageChannel.Reply 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 @@ -852,6 +853,7 @@ public void onMessage(Object message, BasicMessageChannel.Reply reply) { return; } sendAccessibilityEvent(nodeId, AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED); + break; } } }