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

Commit 49aa0d7

Browse files
committed
Fixing type conversion warning
1 parent f47e65c commit 49aa0d7

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ protected Void doInBackground(Object... params) {
519519
public void onHostResume() {
520520
// Determine how long the app was in the background and ensure
521521
// that it meets the minimum duration amount of time.
522-
int durationInBackground = (new Date() - lastPausedDate) / 1000;
522+
long durationInBackground = (new Date().getTime() - lastPausedDate.getTime()) / 1000;
523523
if (durationInBackground >= CodePushNativeModule.this.minimumBackgroundDuration) {
524524
loadBundle();
525525
}

0 commit comments

Comments
 (0)