mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix navigation message relay. (#20193)
This commit is contained in:
parent
4de0c048d5
commit
908fe012d9
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user