Add CATEGORY_REMINDER to notifications (Marshmallow+)

pull/467/head
Andrei Ciubotariu 9 years ago
parent 2c94f42074
commit 4ea4c7cb88

@ -157,6 +157,7 @@ public class Notifier {
Notification notification = new NotificationCompat.Builder(context) Notification notification = new NotificationCompat.Builder(context)
.setSmallIcon(R.drawable.ic_check_white_24dp) .setSmallIcon(R.drawable.ic_check_white_24dp)
.setCategory(NotificationCompat.CATEGORY_REMINDER)
.setTicker(title) .setTicker(title)
.setWhen(currentTimeMillis()) .setWhen(currentTimeMillis())
.setContentTitle(title) .setContentTitle(title)
@ -237,6 +238,7 @@ public class Notifier {
NotificationCompat.Builder builder = new NotificationCompat.Builder(context) NotificationCompat.Builder builder = new NotificationCompat.Builder(context)
.setSmallIcon(R.drawable.ic_check_white_24dp) .setSmallIcon(R.drawable.ic_check_white_24dp)
.setCategory(NotificationCompat.CATEGORY_REMINDER)
.setTicker(taskTitle) .setTicker(taskTitle)
.setWhen(currentTimeMillis()) .setWhen(currentTimeMillis())
.setContentTitle(taskTitle) .setContentTitle(taskTitle)

Loading…
Cancel
Save