Improved code readability
This commit is contained in:
parent
e4cd52060c
commit
58418bcf46
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue