mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 23:07:26 -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)
|
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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user