diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java index 1ae42cbe792..38a58ccd863 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java @@ -726,7 +726,7 @@ public class ReactHostImpl implements ReactHost { if (mStartTask == null) { log(method, "Schedule"); mStartTask = - getOrCreateReactInstanceTask() + getOrCreateReactInstance() .continueWithTask( task -> { if (task.isFaulted()) { @@ -824,7 +824,7 @@ public class ReactHostImpl implements ReactHost { final String callingMethod, final VeniceThenable runnable) { final String method = "callAfterGetOrCreateReactInstance(" + callingMethod + ")"; - return getOrCreateReactInstanceTask() + return getOrCreateReactInstance() .onSuccess( (Continuation) task -> { @@ -863,7 +863,7 @@ public class ReactHostImpl implements ReactHost { *

If the ReactInstance is reloading, will return the reload task. If the ReactInstance is * destroying, will wait until destroy is finished, before creating. */ - private Task getOrCreateReactInstanceTask() { + private Task getOrCreateReactInstance() { if (ReactFeatureFlags.enableBridgelessArchitectureNewCreateReloadDestroy) { return Task.call(this::waitThenCallNewGetOrCreateReactInstanceTask, mBGExecutor) .continueWithTask(Task::getResult);