Skip to content

Commit

Permalink
Apply review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianDevel committed Feb 6, 2024
1 parent d3a3b47 commit 542c27b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Stores/src/main/java/AppUpdateWorker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class AppUpdateWorker(appContext: Context, params: WorkerParameters) : Listenabl
.setConstraints(Constraints.Builder().setRequiresBatteryNotLow(true).build())
// We start with a delayed duration, so that when the app quickly come back to foreground because the user
// was just switching apps, the service is not launched
.setInitialDelay(INITIAL_DELAY, TimeUnit.SECONDS)
.setInitialDelay(INITIAL_DELAY_SECONDS, TimeUnit.SECONDS)
.build()

workManager.enqueueUniqueWork(TAG, ExistingWorkPolicy.KEEP, workRequest)
Expand All @@ -89,6 +89,6 @@ class AppUpdateWorker(appContext: Context, params: WorkerParameters) : Listenabl

companion object {
private const val TAG = "AppUpdateWorker"
private const val INITIAL_DELAY = 10L // 10s
private const val INITIAL_DELAY_SECONDS = 10L
}
}

0 comments on commit 542c27b

Please sign in to comment.