提交 979f8a63 编写于 作者: J Jason Simmons 提交者: GitHub

Set the initial route before launching the Dart app (#3795)

See https://github.com/flutter/flutter/issues/10813
上级 3c049219
......@@ -265,10 +265,10 @@ public final class FlutterActivityDelegate
// was specified.
appBundlePath = FlutterMain.findAppBundlePath(activity.getApplicationContext());
}
flutterView.runFromBundle(appBundlePath, intent.getStringExtra("snapshot"));
if (route != null) {
flutterView.pushRoute(route);
flutterView.setInitialRoute(route);
}
flutterView.runFromBundle(appBundlePath, intent.getStringExtra("snapshot"));
return true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册