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:
MohitMaliFtechiz 2024-12-20 17:25:05 +05:30
parent f15caad737
commit aed27803f7

View File

@ -190,7 +190,12 @@ class FetchDownloadNotificationManager(
putExtra(DOWNLOAD_NOTIFICATION_TITLE, downloadNotification.title) putExtra(DOWNLOAD_NOTIFICATION_TITLE, downloadNotification.title)
} }
val pendingIntent = 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.setContentIntent(pendingIntent)
notificationBuilder.setAutoCancel(true) notificationBuilder.setAutoCancel(true)
} }