mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-09-04 03:47:55 +00:00
Improved code readability
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user