|
@@ -20,10 +20,10 @@ object NotificationHandler {
|
|
|
*/
|
|
|
internal fun openDownloadManagerPendingActivity(context: Context): PendingIntent {
|
|
|
val intent = Intent(context, MainActivity::class.java).apply {
|
|
|
- flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_REORDER_TO_FRONT
|
|
|
+ flags = Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_SINGLE_TOP
|
|
|
action = MainActivity.SHORTCUT_DOWNLOADS
|
|
|
}
|
|
|
- return PendingIntent.getActivity(context, 0, intent, 0)
|
|
|
+ return PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT)
|
|
|
}
|
|
|
|
|
|
/**
|