mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-10 23:59:42 +08:00
fix bug from merge conflict resolution
This commit is contained in:
@@ -452,7 +452,7 @@ public class CodePushNativeModule extends ReactContextBaseJavaModule {
|
||||
public void restartApp(boolean onlyIfUpdateIsPending, Promise promise) {
|
||||
// If this is an unconditional restart request, or there
|
||||
// is current pending update, then reload the app.
|
||||
if (!onlyIfUpdateIsPending || CodePush.this.isPendingUpdate(null)) {
|
||||
if (!onlyIfUpdateIsPending || mSettingsManager.isPendingUpdate(null)) {
|
||||
loadBundle();
|
||||
promise.resolve(true);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user