Skip to content

Commit

Permalink
[fix] notifications now open the correct note on tap.
Browse files Browse the repository at this point in the history
  • Loading branch information
coderPaddyS committed Mar 14, 2024
1 parent da6c4ed commit 48b443e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ class NotificationReceiver : BroadcastReceiver() {
}
).apply {
putExtra(BaseNoteActivity.EXTRA_ID, notification)
flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
}.let {
PendingIntent.getActivity(context, 0, it, PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_UPDATE_CURRENT)
PendingIntent.getActivity(context, notification, it, PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT)
}
val mNotifyMgr = ContextCompat.getSystemService(context, NotificationManager::class.java) as NotificationManager
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
Expand Down

0 comments on commit 48b443e

Please sign in to comment.