Merge pull request #3451 from kiwix/Issue#3441

Fixes of Zim file does not download / pending forever
This commit is contained in:
Kelson 2023-07-26 07:43:43 +02:00 committed by GitHub
commit 06c9dbc9ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,7 @@ class FetchDownloadNotificationManager(private val context: Context) :
.addAction(
R.drawable.fetch_notification_cancel,
context.getString(R.string.cancel),
getActionPendingIntent(downloadNotification, DownloadNotification.ActionType.CANCEL)
getActionPendingIntent(downloadNotification, DownloadNotification.ActionType.DELETE)
)
downloadNotification.isPaused ->
notificationBuilder.setTimeoutAfter(getNotificationTimeOutMillis())
@ -113,7 +113,7 @@ class FetchDownloadNotificationManager(private val context: Context) :
.addAction(
R.drawable.fetch_notification_cancel,
context.getString(R.string.cancel),
getActionPendingIntent(downloadNotification, DownloadNotification.ActionType.CANCEL)
getActionPendingIntent(downloadNotification, DownloadNotification.ActionType.DELETE)
)
downloadNotification.isQueued ->
notificationBuilder.setTimeoutAfter(getNotificationTimeOutMillis())