Improved code readability

This commit is contained in:
litetex 2021-11-02 22:57:31 +01:00
parent e4cd52060c
commit 58418bcf46
1 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,7 @@ class NotificationWorker(
NetworkType.CONNECTED
}
).build()
val request = PeriodicWorkRequest.Builder(
NotificationWorker::class.java,
options.interval,
@ -95,6 +96,7 @@ class NotificationWorker(
.addTag(TAG)
.setBackoffCriteria(BackoffPolicy.LINEAR, 30, TimeUnit.MINUTES)
.build()
WorkManager.getInstance(context)
.enqueueUniquePeriodicWork(
TAG,