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

See https://github.com/flutter/flutter/issues/10813
This commit is contained in:
Jason Simmons
2017-06-19 15:25:47 -07:00
committed by GitHub
parent d9bc2f5604
commit c95fc6fd28

View File

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