@@ -238,7 +238,7 @@ private void initializeUpdateAfterRestart() {
238
238
// Reset the state which indicates that
239
239
// the app was just freshly updated.
240
240
didUpdate = false ;
241
-
241
+
242
242
JSONObject pendingUpdate = getPendingUpdate ();
243
243
if (pendingUpdate != null ) {
244
244
try {
@@ -253,7 +253,7 @@ private void initializeUpdateAfterRestart() {
253
253
// There is in fact a new update running for the first
254
254
// time, so update the local state to ensure the client knows.
255
255
didUpdate = true ;
256
-
256
+
257
257
// Mark that we tried to initialize the new update, so that if it crashes,
258
258
// we will know that we need to rollback when the app next starts.
259
259
savePendingUpdate (pendingUpdate .getString (PENDING_UPDATE_HASH_KEY ),
@@ -449,7 +449,7 @@ protected Void doInBackground(Void... params) {
449
449
WritableMap mutableUpdatePackage = CodePushUtils .convertReadableMapToWritableMap (updatePackage );
450
450
mutableUpdatePackage .putString (BINARY_MODIFIED_TIME_KEY , "" + getBinaryResourcesModifiedTime ());
451
451
codePushPackage .downloadPackage (mutableUpdatePackage , CodePush .this .assetsBundleFileName , new DownloadProgressCallback () {
452
- private boolean nextFrameBusy = false ;
452
+ private boolean hasScheduledNextFrame = false ;
453
453
private DownloadProgress latestDownloadProgress = null ;
454
454
455
455
@ Override
@@ -459,11 +459,11 @@ public void call(DownloadProgress downloadProgress) {
459
459
}
460
460
461
461
this .latestDownloadProgress = downloadProgress ;
462
- if (nextFrameBusy ) {
462
+ if (hasScheduledNextFrame ) {
463
463
return ;
464
464
}
465
465
466
- nextFrameBusy = true ;
466
+ hasScheduledNextFrame = true ;
467
467
mainActivity .runOnUiThread (new Runnable () {
468
468
@ Override
469
469
public void run () {
@@ -473,7 +473,7 @@ public void doFrame(long frameTimeNanos) {
473
473
getReactApplicationContext ()
474
474
.getJSModule (DeviceEventManagerModule .RCTDeviceEventEmitter .class )
475
475
.emit (DOWNLOAD_PROGRESS_EVENT_NAME , latestDownloadProgress .createWritableMap ());
476
- nextFrameBusy = false ;
476
+ hasScheduledNextFrame = false ;
477
477
}
478
478
});
479
479
}
0 commit comments