notification got flammenwerfert

aniyomi is running notification... Hans get ze Flammenwerfer
This commit is contained in:
LuftVerbot 2023-06-02 13:56:09 +02:00
parent 23464f211c
commit 788bf7fd23

View file

@ -89,7 +89,9 @@ class AnimeDownloadService : Service() {
override fun onCreate() {
scope = CoroutineScope(SupervisorJob() + Dispatchers.IO)
startForeground(Notifications.ID_DOWNLOAD_EPISODE_PROGRESS, getPlaceholderNotification())
downloadManager.queue.state.value.forEach {
startForeground(it.episode.id.hashCode(), getPlaceholderNotification())
}
wakeLock = acquireWakeLock(javaClass.name)
_isRunning.value = true
listenNetworkChanges()