Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit e65aaaa

Browse files
committed
fix isFirstRun
1 parent a2cbdab commit e65aaaa

File tree

1 file changed

+1
-2
lines changed
  • android/app/src/main/java/com/microsoft/codepush/react

1 file changed

+1
-2
lines changed

android/app/src/main/java/com/microsoft/codepush/react/CodePush.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public String getBundleUrl(String assetsBundleFileName) {
144144
return packageFilePath;
145145
} else {
146146
// The binary version is newer.
147-
147+
didUpdate = false;
148148
CodePushUtils.logBundleUrl(binaryJsBundleUrl);
149149
return binaryJsBundleUrl;
150150
}
@@ -230,7 +230,6 @@ private boolean isPendingUpdate(String packageHash) {
230230
boolean updateIsPending = pendingUpdate != null &&
231231
pendingUpdate.getBoolean(PENDING_UPDATE_IS_LOADING_KEY) == false &&
232232
pendingUpdate.getString(PENDING_UPDATE_HASH_KEY).equals(packageHash);
233-
234233
return updateIsPending;
235234
}
236235
catch (JSONException e) {

0 commit comments

Comments
 (0)