mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Set the initial route before launching the Dart app (#3795)
See https://github.com/flutter/flutter/issues/10813
This commit is contained in:
parent
3c049219e1
commit
979f8a63ea
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user