@@ -27,7 +27,6 @@ public class FlutterNativeView implements BinaryMessenger {
2727 private FlutterView mFlutterView ;
2828 private final Context mContext ;
2929 private boolean applicationIsRunning ;
30- private FlutterIsolateStartedEvent startedEvent ;
3130
3231 public FlutterNativeView (Context context ) {
3332 this (context , false );
@@ -83,7 +82,7 @@ public void runFromBundle(FlutterRunArguments args) {
8382 throw new AssertionError ("An entrypoint must be specified" );
8483 }
8584 runFromBundleInternal (args .bundlePath , args .entrypoint ,
86- args .libraryPath , args . onStartedEvent );
85+ args .libraryPath , null );
8786 }
8887
8988 /**
@@ -97,12 +96,11 @@ public void runFromBundle(String bundlePath, String snapshotOverride, String ent
9796 }
9897
9998 private void runFromBundleInternal (String bundlePath , String entrypoint ,
100- String libraryPath , FlutterIsolateStartedEvent event ) {
99+ String libraryPath , String snapshotOverride ) {
101100 assertAttached ();
102101 if (applicationIsRunning )
103102 throw new AssertionError (
104103 "This Flutter engine instance is already running an application" );
105- startedEvent = event ;
106104 nativeRunBundleAndSnapshotFromLibrary (mNativePlatformView , bundlePath ,
107105 entrypoint , libraryPath , mContext .getResources ().getAssets ());
108106
@@ -224,11 +222,6 @@ private void onFirstFrame() {
224222 mFlutterView .onFirstFrame ();
225223 }
226224
227- private void onStarted (boolean success ) {
228- if (startedEvent == null ) return ;
229- startedEvent .onStarted (success );
230- }
231-
232225 private static native long nativeAttach (FlutterNativeView view , boolean isBackgroundView );
233226 private static native void nativeDestroy (long nativePlatformViewAndroid );
234227 private static native void nativeDetach (long nativePlatformViewAndroid );
0 commit comments