Merge pull request #587 from PhilKes/fix/reminder-identifier-requestcode

Use note.id and reminder.id for reminder requestCode
This commit is contained in:
Phil 2025-05-10 14:30:49 +02:00 committed by GitHub
commit c64a7b2ed7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -80,7 +80,7 @@ private fun Context.createReminderAlarmIntent(noteId: Long, reminderId: Long): P
intent.putExtra(ReminderReceiver.EXTRA_NOTE_ID, noteId) intent.putExtra(ReminderReceiver.EXTRA_NOTE_ID, noteId)
return PendingIntent.getBroadcast( return PendingIntent.getBroadcast(
this, this,
0, (noteId.toString() + reminderId.toString()).toInt(),
intent, intent,
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE,
) )