Fix persistent notifications on Android 13

pull/2068/head
Alex Baker 2 years ago
parent 670fc1591f
commit dd48d074be

@ -193,7 +193,9 @@ class NotificationManager @Inject constructor(
ringTimes = 1 ringTimes = 1
} }
if (preferences.usePersistentReminders()) { if (preferences.usePersistentReminders()) {
notification.flags = notification.flags or NotificationCompat.FLAG_NO_CLEAR notification.flags = notification.flags or
NotificationCompat.FLAG_NO_CLEAR or
NotificationCompat.FLAG_ONGOING_EVENT
} }
val deleteIntent = Intent(context, NotificationClearedReceiver::class.java) val deleteIntent = Intent(context, NotificationClearedReceiver::class.java)
deleteIntent.putExtra(EXTRA_NOTIFICATION_ID, notificationId) deleteIntent.putExtra(EXTRA_NOTIFICATION_ID, notificationId)

Loading…
Cancel
Save