File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
android/app/src/main/java/com/microsoft/codepush/react Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ public void run() {
162
162
// reload method introduced in RN 0.74 (https://github.com/reactwg/react-native-new-architecture/discussions/174)
163
163
// so, we need to check if reload method exists and call it
164
164
try {
165
- ReactDelegate reactDelegate = CodePushNativeModule .this .getReactDelegate ();
165
+ ReactDelegate reactDelegate = CodePushNativeModule .this .resolveReactDelegate ();
166
166
if (reactDelegate == null ) {
167
167
throw new NoSuchMethodException ("ReactDelegate doesn't have reload method in RN < 0.74" );
168
168
}
@@ -211,7 +211,7 @@ private void clearLifecycleEventListener() {
211
211
}
212
212
}
213
213
214
- private ReactDelegate getReactDelegate () {
214
+ private ReactDelegate resolveReactDelegate () {
215
215
ReactActivity currentActivity = (ReactActivity ) getCurrentActivity ();
216
216
if (currentActivity == null ) {
217
217
return null ;
@@ -517,7 +517,7 @@ protected Void doInBackground(Void... params) {
517
517
return null ;
518
518
}
519
519
}
520
-
520
+
521
521
promise .resolve ("" );
522
522
} catch (CodePushUnknownException e ) {
523
523
CodePushUtils .log (e );
You can’t perform that action at this time.
0 commit comments