Fix navigation message relay. (flutter/engine#20193)

This commit is contained in:
Mehmet Fidanboylu
2020-08-02 14:28:27 -07:00
committed by GitHub
parent ffd8a236b5
commit 48af2888e3

View File

@@ -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;