提交 79363675 编写于 作者: J John McCutchan 提交者: GitHub

Make bundle path optional for the RUN intent (#3061)

上级 83c01acc
......@@ -134,7 +134,14 @@ public class SkyActivity extends Activity {
String action = intent.getAction();
if (Intent.ACTION_RUN.equals(action)) {
String route = intent.getStringExtra("route");
mView.runFromBundle(intent.getDataString(),
String appBundlePath = intent.getDataString();
if (appBundlePath == null) {
// Fall back to the installation path if no bundle path
// was specified.
appBundlePath =
FlutterMain.findAppBundlePath(getApplicationContext());
}
mView.runFromBundle(appBundlePath,
intent.getStringExtra("snapshot"));
if (route != null)
mView.pushRoute(route);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册