mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Fixed: When downloading 2 files together, and if we click on both notifications to open the ZIM file then same ZIM file is opening for both notifications.
This commit is contained in:
parent
f15caad737
commit
aed27803f7
@ -190,7 +190,12 @@ class FetchDownloadNotificationManager(
|
||||
putExtra(DOWNLOAD_NOTIFICATION_TITLE, downloadNotification.title)
|
||||
}
|
||||
val pendingIntent =
|
||||
getActivity(context, ZERO, internal, FLAG_IMMUTABLE or FLAG_UPDATE_CURRENT)
|
||||
getActivity(
|
||||
context,
|
||||
downloadNotification.notificationId,
|
||||
internal,
|
||||
FLAG_IMMUTABLE or FLAG_UPDATE_CURRENT
|
||||
)
|
||||
notificationBuilder.setContentIntent(pendingIntent)
|
||||
notificationBuilder.setAutoCancel(true)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user