mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-19 11:43:56 +00:00
fix: remove unnecessary setExpedited
This commit is contained in:
@@ -38,21 +38,18 @@ interface TaskScheduler {
|
||||
CommentNotificationWorker.WORK_NAME,
|
||||
androidx.work.ExistingWorkPolicy.REPLACE,
|
||||
androidx.work.OneTimeWorkRequest.Builder(CommentNotificationWorker::class.java)
|
||||
.setExpedited(OutOfQuotaPolicy.RUN_AS_NON_EXPEDITED_WORK_REQUEST)
|
||||
.build()
|
||||
)
|
||||
workManager.enqueueUniqueWork(
|
||||
AnilistNotificationWorker.WORK_NAME,
|
||||
androidx.work.ExistingWorkPolicy.REPLACE,
|
||||
androidx.work.OneTimeWorkRequest.Builder(AnilistNotificationWorker::class.java)
|
||||
.setExpedited(OutOfQuotaPolicy.RUN_AS_NON_EXPEDITED_WORK_REQUEST)
|
||||
.build()
|
||||
)
|
||||
workManager.enqueueUniqueWork(
|
||||
SubscriptionNotificationWorker.WORK_NAME,
|
||||
androidx.work.ExistingWorkPolicy.REPLACE,
|
||||
androidx.work.OneTimeWorkRequest.Builder(SubscriptionNotificationWorker::class.java)
|
||||
.setExpedited(OutOfQuotaPolicy.RUN_AS_NON_EXPEDITED_WORK_REQUEST)
|
||||
.build()
|
||||
)
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ package ani.dantotsu.notifications.subscription
|
||||
import android.content.Context
|
||||
import androidx.work.CoroutineWorker
|
||||
import androidx.work.WorkerParameters
|
||||
import ani.dantotsu.notifications.anilist.AnilistNotificationTask
|
||||
import ani.dantotsu.util.Logger
|
||||
|
||||
class SubscriptionNotificationWorker(appContext: Context, workerParams: WorkerParameters) :
|
||||
|
||||
Reference in New Issue
Block a user