Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import android.util.Log;
import androidx.annotation.NonNull;
import com.google.firebase.messaging.RemoteMessage;
import io.flutter.FlutterInjector;
import io.flutter.embedding.engine.FlutterEngine;
import io.flutter.embedding.engine.FlutterShellArgs;
import io.flutter.embedding.engine.dart.DartExecutor;
Expand All @@ -30,7 +31,6 @@
import java.util.Map;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicBoolean;

/**
* An background execution abstraction which handles initializing a background isolate running a
* callback dispatcher, used to invoke Dart callbacks while backgrounded.
Expand Down Expand Up @@ -149,7 +149,7 @@ public void startBackgroundIsolate(long callbackHandle, FlutterShellArgs shellAr
return;
}

FlutterLoader loader = new FlutterLoader();
FlutterLoader loader = FlutterInjector.instance().flutterLoader();
Handler mainHandler = new Handler(Looper.getMainLooper());
Runnable myRunnable =
() -> {
Expand Down