mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 13:37:47 +01:00
Explicitly dismiss progress notification on downloader stop
This commit is contained in:
parent
3ddd1033c3
commit
095461e31b
2 changed files with 3 additions and 2 deletions
|
@ -79,7 +79,7 @@ internal class DownloadNotifier(private val context: Context) {
|
|||
* Dismiss the downloader's notification. Downloader error notifications use a different id, so
|
||||
* those can only be dismissed by the user.
|
||||
*/
|
||||
fun dismiss() {
|
||||
fun dismissProgress() {
|
||||
context.notificationManager.cancel(Notifications.ID_DOWNLOAD_CHAPTER_PROGRESS)
|
||||
}
|
||||
|
||||
|
|
|
@ -139,6 +139,7 @@ class Downloader(
|
|||
notifier.paused = false
|
||||
notifier.onPaused()
|
||||
} else {
|
||||
notifier.dismissProgress()
|
||||
notifier.onComplete()
|
||||
}
|
||||
}
|
||||
|
@ -170,7 +171,7 @@ class Downloader(
|
|||
.forEach { it.status = Download.NOT_DOWNLOADED }
|
||||
}
|
||||
queue.clear()
|
||||
notifier.dismiss()
|
||||
notifier.dismissProgress()
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue