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