Skip to content

Commit

Permalink
Possible solution to an error with Alarms not working in time
Browse files Browse the repository at this point in the history
  • Loading branch information
Javinator9889 committed Jul 2, 2020
1 parent 7884aa7 commit b9a1908
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -21,7 +21,6 @@ package com.javinator9889.handwashingreminder.jobs.alarms
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.javinator9889.handwashingreminder.application.HandwashingApplication
import com.javinator9889.handwashingreminder.jobs.workers.BreakfastNotificationWorker
import com.javinator9889.handwashingreminder.jobs.workers.DinnerNotificationWorker
import com.javinator9889.handwashingreminder.jobs.workers.LunchNotificationWorker
Expand All @@ -36,6 +35,6 @@ class AlarmReceiver : BroadcastReceiver() {
Alarms.DINNER_ALARM.identifier -> DinnerNotificationWorker(context)
else -> return
}
goAsync(coroutineScope = HandwashingApplication.scope) { worker.doWork() }
goAsync { worker.doWork() }
}
}

0 comments on commit b9a1908

Please sign in to comment.