mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-10 16:02:05 -04:00
Fixed downloading pending forever if we canceled it from notification
This commit is contained in:
parent
8a105ae296
commit
842a7ee737
@ -101,7 +101,7 @@ class FetchDownloadNotificationManager(private val context: Context) :
|
|||||||
.addAction(
|
.addAction(
|
||||||
R.drawable.fetch_notification_cancel,
|
R.drawable.fetch_notification_cancel,
|
||||||
context.getString(R.string.cancel),
|
context.getString(R.string.cancel),
|
||||||
getActionPendingIntent(downloadNotification, DownloadNotification.ActionType.CANCEL)
|
getActionPendingIntent(downloadNotification, DownloadNotification.ActionType.DELETE)
|
||||||
)
|
)
|
||||||
downloadNotification.isPaused ->
|
downloadNotification.isPaused ->
|
||||||
notificationBuilder.setTimeoutAfter(getNotificationTimeOutMillis())
|
notificationBuilder.setTimeoutAfter(getNotificationTimeOutMillis())
|
||||||
@ -113,7 +113,7 @@ class FetchDownloadNotificationManager(private val context: Context) :
|
|||||||
.addAction(
|
.addAction(
|
||||||
R.drawable.fetch_notification_cancel,
|
R.drawable.fetch_notification_cancel,
|
||||||
context.getString(R.string.cancel),
|
context.getString(R.string.cancel),
|
||||||
getActionPendingIntent(downloadNotification, DownloadNotification.ActionType.CANCEL)
|
getActionPendingIntent(downloadNotification, DownloadNotification.ActionType.DELETE)
|
||||||
)
|
)
|
||||||
downloadNotification.isQueued ->
|
downloadNotification.isQueued ->
|
||||||
notificationBuilder.setTimeoutAfter(getNotificationTimeOutMillis())
|
notificationBuilder.setTimeoutAfter(getNotificationTimeOutMillis())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user