fix bug from merge conflict resolution

This commit is contained in:
Geoffrey Goh
2016-06-28 14:53:42 -07:00
parent c7fa9ace2d
commit 8624904cd4

View File

@@ -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;