mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-06-05 22:19:17 +02:00
Handle notification for multiple timers
- update title for timer notification in finished state to be the label if it is empty - remove duration field from the TimerEvent.Reset
This commit is contained in:
@ -311,7 +311,7 @@ fun Context.getTimerNotification(timer: Timer, pendingIntent: PendingIntent, add
|
||||
|
||||
val reminderActivityIntent = getReminderActivityIntent()
|
||||
val builder = NotificationCompat.Builder(this)
|
||||
.setContentTitle(getString(R.string.timer))
|
||||
.setContentTitle(if(timer.label.isEmpty()) getString(R.string.timer) else timer.label)
|
||||
.setContentText(getString(R.string.time_expired))
|
||||
.setSmallIcon(R.drawable.ic_timer)
|
||||
.setContentIntent(pendingIntent)
|
||||
|
Reference in New Issue
Block a user