This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
android/app/src/main/java/com/microsoft/codepush/react Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,6 @@ public void clearUpdates() {
348
348
}
349
349
350
350
private class CodePushNativeModule extends ReactContextBaseJavaModule {
351
- private Date lastPausedDate = null ;
352
351
private LifecycleEventListener lifecycleEventListener = null ;
353
352
private int minimumBackgroundDuration = 0 ;
354
353
@@ -515,6 +514,8 @@ protected Void doInBackground(Object... params) {
515
514
if (lifecycleEventListener == null ) {
516
515
// Ensure we do not add the listener twice.
517
516
lifecycleEventListener = new LifecycleEventListener () {
517
+ private Date lastPausedDate = null ;
518
+
518
519
@ Override
519
520
public void onHostResume () {
520
521
// Determine how long the app was in the background and ensure
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ @implementation CodePush {
13
13
BOOL _hasResumeListener;
14
14
BOOL _isFirstRunAfterUpdate;
15
15
int _minimumBackgroundDuration;
16
- NSDate * _lastResignedDate;
16
+ NSDate *_lastResignedDate;
17
17
}
18
18
19
19
RCT_EXPORT_MODULE ()
You can’t perform that action at this time.
0 commit comments