Use note.id and reminder.id for reminder requestCode

This commit is contained in:
PhilKes 2025-05-10 14:29:23 +02:00
parent 23d678c8a3
commit fb687856f1

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,
) )