Cancel early dismissal notification when cancelling alarm

This commit is contained in:
Ensar Sarajčić 2023-08-31 16:16:28 +02:00
parent f002d10179
commit f507875c0f

View file

@ -195,6 +195,7 @@ fun Context.getAlarmIntent(alarm: Alarm): PendingIntent {
fun Context.cancelAlarmClock(alarm: Alarm) {
val alarmManager = getSystemService(Context.ALARM_SERVICE) as AlarmManager
alarmManager.cancel(getAlarmIntent(alarm))
alarmManager.cancel(getEarlyAlarmDismissalIntent(alarm))
}
fun Context.hideNotification(id: Int) {