From 1c27722cfa0e9d032187392f618afb847d064624 Mon Sep 17 00:00:00 2001 From: Arne Coucheron Date: Tue, 23 Jul 2019 09:09:34 +0200 Subject: Messaging: And there shall be light (LED) Need this for notification LED to work (if supported by device), after moving to notification channels. Change-Id: I0fb627cf4dd93d4314419b12cfcf17c64fa50ad4 --- src/org/lineageos/messaging/util/NotifUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/lineageos/messaging/util/NotifUtils.java b/src/org/lineageos/messaging/util/NotifUtils.java index 8d71a8a..7d9bec4 100644 --- a/src/org/lineageos/messaging/util/NotifUtils.java +++ b/src/org/lineageos/messaging/util/NotifUtils.java @@ -43,6 +43,7 @@ public final class NotifUtils { String title = context.getString(titleResId); NotificationChannel newChannel = new NotificationChannel(id, title, priority); + newChannel.enableLights(true); if (groupId != null) { newChannel.setGroup(groupId); } @@ -62,6 +63,7 @@ public final class NotifUtils { } NotificationChannel newChannel = new NotificationChannel(id, title, priority); + newChannel.enableLights(true); if (groupId != null) { newChannel.setGroup(groupId); } -- cgit v1.2.3