File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed
ReactAndroid/src/main/java/com/facebook/react/bridge Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -65,21 +65,9 @@ public void initializeWithInstance(CatalystInstance catalystInstance) {
65
65
mCatalystInstance = catalystInstance ;
66
66
67
67
ReactQueueConfiguration queueConfig = catalystInstance .getReactQueueConfiguration ();
68
- initializeMessageQueueThreads (queueConfig );
69
- }
70
-
71
- /**
72
- * Initialize message queue threads using a ReactQueueConfiguration.
73
- * TODO (janzer) T43898341 Make this package instead of public
74
- */
75
- public void initializeMessageQueueThreads (ReactQueueConfiguration queueConfig ) {
76
- if (mUiMessageQueueThread == null && mNativeModulesMessageQueueThread == null && mJSMessageQueueThread == null ) {
77
- mUiMessageQueueThread = queueConfig .getUIQueueThread ();
78
- mNativeModulesMessageQueueThread = queueConfig .getNativeModulesQueueThread ();
79
- mJSMessageQueueThread = queueConfig .getJSQueueThread ();
80
- } else {
81
- throw new IllegalStateException ("Message queue threads already initialized" );
82
- }
68
+ mUiMessageQueueThread = queueConfig .getUIQueueThread ();
69
+ mNativeModulesMessageQueueThread = queueConfig .getNativeModulesQueueThread ();
70
+ mJSMessageQueueThread = queueConfig .getJSQueueThread ();
83
71
}
84
72
85
73
public void resetPerfStats () {
You can’t perform that action at this time.
0 commit comments