make notifications also blink the LED

This commit is contained in:
Luboš Luňák
2017-09-11 13:46:49 +02:00
parent dccf5eae47
commit a680d57cac

View File

@@ -22,6 +22,7 @@ package org.isoron.uhabits.notifications
import android.app.* import android.app.*
import android.content.* import android.content.*
import android.graphics.BitmapFactory.* import android.graphics.BitmapFactory.*
import android.graphics.Color
import android.support.v4.app.* import android.support.v4.app.*
import android.support.v4.app.NotificationCompat.* import android.support.v4.app.NotificationCompat.*
import org.isoron.androidbase.* import org.isoron.androidbase.*
@@ -84,6 +85,7 @@ class AndroidNotificationTray
.setWhen(reminderTime) .setWhen(reminderTime)
.setShowWhen(true) .setShowWhen(true)
.setOngoing(preferences.shouldMakeNotificationsSticky()) .setOngoing(preferences.shouldMakeNotificationsSticky())
.setLights(Color.RED, 1000, 1000)
.build() .build()
val notificationManager = context.getSystemService( val notificationManager = context.getSystemService(