ensure that bridge is not destroyed when semantics is still enabled (flutter/engine#5672)
This commit is contained in:
@@ -65,7 +65,7 @@ sk_sp<GrContext> PlatformViewIOS::CreateResourceContext() const {
|
||||
void PlatformViewIOS::SetSemanticsEnabled(bool enabled) {
|
||||
if (enabled && !accessibility_bridge_) {
|
||||
accessibility_bridge_ = std::make_unique<AccessibilityBridge>(owner_view_, this);
|
||||
} else {
|
||||
} else if (!enabled && accessibility_bridge_) {
|
||||
accessibility_bridge_.reset();
|
||||
}
|
||||
PlatformView::SetSemanticsEnabled(enabled);
|
||||
|
||||
Reference in New Issue
Block a user