Fix navigation message relay. (flutter/engine#20193)
This commit is contained in:
committed by
GitHub
parent
ffd8a236b5
commit
48af2888e3
@@ -303,7 +303,8 @@ void Engine::DispatchPlatformMessage(fml::RefPtr<PlatformMessage> message) {
|
||||
} else if (channel == kSettingsChannel) {
|
||||
HandleSettingsPlatformMessage(message.get());
|
||||
return;
|
||||
} else if (channel == kNavigationChannel) {
|
||||
} else if (!runtime_controller_->IsRootIsolateRunning() &&
|
||||
channel == kNavigationChannel) {
|
||||
// If there's no runtime_, we may still need to set the initial route.
|
||||
HandleNavigationPlatformMessage(std::move(message));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user