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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user