Cancel early dismissal notification when cancelling alarm
This commit is contained in:
parent
f002d10179
commit
f507875c0f
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue