mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-02-01 04:01:08 +00:00
fix: notification check on app launch
This commit is contained in:
@@ -10,7 +10,7 @@ import ani.dantotsu.notifications.subscription.SubscriptionNotificationWorker
|
||||
|
||||
class WorkManagerScheduler(private val context: Context) : TaskScheduler {
|
||||
override fun scheduleRepeatingTask(taskType: TaskType, interval: Long) {
|
||||
if (interval < PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS) {
|
||||
if (interval * 1000 < PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS) {
|
||||
cancelTask(taskType)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user