Move notification logic out of LibraryUpdateService

This commit is contained in:
arkon
2020-05-10 18:14:43 -04:00
parent dd1b5c7ea7
commit 530daeaa3a
5 changed files with 286 additions and 265 deletions
@@ -37,11 +37,11 @@ class UpdaterService : Service() {
override fun onCreate() {
super.onCreate()
notifier = UpdaterNotifier(this)
wakeLock = acquireWakeLock(javaClass.name)
startForeground(Notifications.ID_UPDATER, notifier.onDownloadStarted().build())
wakeLock = acquireWakeLock(javaClass.name)
}
/**