mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fixes crash on Android when activating Now on Tap (flutter/engine#4536)
This commit is contained in:
parent
2ac17ebc40
commit
0258b3a3a1
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user