show a light at reminder notification

This commit is contained in:
tibbi 2016-11-26 11:16:58 +01:00
parent 4010daf08e
commit d77e55582b
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class NotificationReceiver : BroadcastReceiver() {
context.scheduleNextEvent(event)
}
private fun getEventTime(startTime: String, endTime: String) = if (startTime == endTime) startTime else startTime + " - " + endTime
private fun getEventTime(startTime: String, endTime: String) = if (startTime == endTime) startTime else ("$startTime - $endTime")
private fun getPendingIntent(context: Context, event: Event): PendingIntent {
val intent = Intent(context, EventActivity::class.java)
@ -52,6 +52,7 @@ class NotificationReceiver : BroadcastReceiver() {
.setContentText(content)
.setSmallIcon(R.mipmap.calendar)
.setContentIntent(pendingIntent)
.setDefaults(Notification.DEFAULT_LIGHTS)
.setAutoCancel(true)
.setSound(soundUri)
.build()