From aed27803f7bfba793bbfa380a84df7cb33b43399 Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Fri, 20 Dec 2024 17:25:05 +0530 Subject: [PATCH] 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. --- .../downloadManager/FetchDownloadNotificationManager.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/kiwix/kiwixmobile/core/downloader/downloadManager/FetchDownloadNotificationManager.kt b/core/src/main/java/org/kiwix/kiwixmobile/core/downloader/downloadManager/FetchDownloadNotificationManager.kt index 183715808..81d26b6a3 100644 --- a/core/src/main/java/org/kiwix/kiwixmobile/core/downloader/downloadManager/FetchDownloadNotificationManager.kt +++ b/core/src/main/java/org/kiwix/kiwixmobile/core/downloader/downloadManager/FetchDownloadNotificationManager.kt @@ -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) }