diff --git a/engine/src/flutter/shell/platform/android/io/flutter/app/FlutterActivityDelegate.java b/engine/src/flutter/shell/platform/android/io/flutter/app/FlutterActivityDelegate.java index e28523a759..9496758bc2 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/app/FlutterActivityDelegate.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/app/FlutterActivityDelegate.java @@ -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; }