revert auto-enabling semantics (flutter/engine#24978)

This commit is contained in:
Yegor
2021-03-12 13:52:02 -08:00
committed by GitHub
parent 750e682d2a
commit 17bc7504a7

View File

@@ -1472,10 +1472,7 @@ class EngineSemanticsOwner {
/// Updates the semantics tree from data in the [uiUpdate].
void updateSemantics(ui.SemanticsUpdate uiUpdate) {
if (!_semanticsEnabled) {
// If we're receiving a semantics update from the framework, it means the
// developer enabled it programmatically, so we enable it in the engine
// too.
semanticsEnabled = true;
return;
}
final SemanticsUpdate update = uiUpdate as SemanticsUpdate;