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

Commit af33b38

Browse files
committed
Code cleanup
1 parent 49aa0d7 commit af33b38

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ public void clearUpdates() {
348348
}
349349

350350
private class CodePushNativeModule extends ReactContextBaseJavaModule {
351-
private Date lastPausedDate = null;
352351
private LifecycleEventListener lifecycleEventListener = null;
353352
private int minimumBackgroundDuration = 0;
354353

@@ -515,6 +514,8 @@ protected Void doInBackground(Object... params) {
515514
if (lifecycleEventListener == null) {
516515
// Ensure we do not add the listener twice.
517516
lifecycleEventListener = new LifecycleEventListener() {
517+
private Date lastPausedDate = null;
518+
518519
@Override
519520
public void onHostResume() {
520521
// Determine how long the app was in the background and ensure

ios/CodePush/CodePush.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ @implementation CodePush {
1313
BOOL _hasResumeListener;
1414
BOOL _isFirstRunAfterUpdate;
1515
int _minimumBackgroundDuration;
16-
NSDate * _lastResignedDate;
16+
NSDate *_lastResignedDate;
1717
}
1818

1919
RCT_EXPORT_MODULE()

0 commit comments

Comments
 (0)