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

Commit 5724faf

Browse files
author
Jonah Williams
authored
ensure that bridge is not destroyed when semantics is still enabled (#5672)
1 parent 24af9ca commit 5724faf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell/platform/darwin/ios/platform_view_ios.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
void PlatformViewIOS::SetSemanticsEnabled(bool enabled) {
6666
if (enabled && !accessibility_bridge_) {
6767
accessibility_bridge_ = std::make_unique<AccessibilityBridge>(owner_view_, this);
68-
} else {
68+
} else if (!enabled && accessibility_bridge_) {
6969
accessibility_bridge_.reset();
7070
}
7171
PlatformView::SetSemanticsEnabled(enabled);

0 commit comments

Comments
 (0)