summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArne Coucheron <arco68@gmail.com>2019-07-23 09:09:34 +0200
committerArne Coucheron <arco68@gmail.com>2019-07-24 01:06:30 +0200
commit1c27722cfa0e9d032187392f618afb847d064624 (patch)
tree4d4390037afda8a4f73b3d5829b89aaaf6ac93b7
parentbafb86159f2dd70cb43a3554cdbf1792139b50ad (diff)
downloadpackages_apps_Messaging-1c27722cfa0e9d032187392f618afb847d064624.tar.gz
packages_apps_Messaging-1c27722cfa0e9d032187392f618afb847d064624.tar.bz2
packages_apps_Messaging-1c27722cfa0e9d032187392f618afb847d064624.zip
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
-rw-r--r--src/org/lineageos/messaging/util/NotifUtils.java2
1 files changed, 2 insertions, 0 deletions
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);
}