fix isFirstRun

This commit is contained in:
Geoffrey Goh
2015-12-22 13:04:14 -08:00
parent a2cbdab91b
commit e65aaaa2f1

View File

@@ -144,7 +144,7 @@ public class CodePush {
return packageFilePath;
} else {
// The binary version is newer.
didUpdate = false;
CodePushUtils.logBundleUrl(binaryJsBundleUrl);
return binaryJsBundleUrl;
}
@@ -230,7 +230,6 @@ public class CodePush {
boolean updateIsPending = pendingUpdate != null &&
pendingUpdate.getBoolean(PENDING_UPDATE_IS_LOADING_KEY) == false &&
pendingUpdate.getString(PENDING_UPDATE_HASH_KEY).equals(packageHash);
return updateIsPending;
}
catch (JSONException e) {