未验证 提交 5ce89a0f 编写于 作者: M Michael Goderbauer 提交者: GitHub

Fixes crash on Android when activating Now on Tap (#4536)

上级 ce8ea0f7
......@@ -855,8 +855,10 @@ public class FlutterView extends SurfaceView
@Override
public AccessibilityNodeProvider getAccessibilityNodeProvider() {
ensureAccessibilityEnabled();
return mAccessibilityNodeProvider;
if (mAccessibilityEnabled)
return mAccessibilityNodeProvider;
// TODO(goderbauer): when a11y is off this should return a one-off snapshot of the a11y tree.
return null;
}
private AccessibilityBridge mAccessibilityNodeProvider;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册