privatevoidrecreateReactContextInBackground(JavaScriptExecutorjsExecutor,JSBundleLoaderjsBundleLoader){UiThreadUtil.assertOnUiThread();ReactContextInitParamsinitParams=newReactContextInitParams(jsExecutor,jsBundleLoader);if(!mIsContextInitAsyncTaskRunning){// No background task to create react context is currently running, create and execute one.ReactContextInitAsyncTaskinitTask=newReactContextInitAsyncTask();initTask.execute(initParams);mIsContextInitAsyncTaskRunning=true;}else{// Background task is currently running, queue up most recent init params to recreate context// once task completes.mPendingReactContextInitParams=initParams;}}