mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-06-05 22:19:17 +02:00
Almost done
This commit is contained in:
@ -226,13 +226,6 @@ fun Context.showAlarmNotification(alarm: Alarm) {
|
||||
scheduleNextAlarm(alarm, false)
|
||||
}
|
||||
|
||||
fun Context.showTimerNotification(addDeleteIntent: Boolean) {
|
||||
val pendingIntent = getOpenTimerTabIntent()
|
||||
val notification = getTimerNotification(pendingIntent, addDeleteIntent)
|
||||
val notificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
||||
notificationManager.notify(TIMER_NOTIF_ID, notification)
|
||||
}
|
||||
|
||||
@SuppressLint("NewApi")
|
||||
fun Context.getTimerNotification(pendingIntent: PendingIntent, addDeleteIntent: Boolean): Notification {
|
||||
var soundUri = config.timerSoundUri
|
||||
|
Reference in New Issue
Block a user