mirror of
https://github.com/DrKLO/Telegram.git
synced 2025-01-20 15:54:49 +01:00
Notifications: allow to show default LED lights, set by system
This commit is contained in:
parent
419969f721
commit
5c36ed854a
1 changed files with 1 additions and 3 deletions
|
@ -4530,9 +4530,7 @@ public class MessagesController implements NotificationCenter.NotificationCenter
|
||||||
mBuilder.setContentIntent(contentIntent);
|
mBuilder.setContentIntent(contentIntent);
|
||||||
mNotificationManager.cancel(1);
|
mNotificationManager.cancel(1);
|
||||||
Notification notification = mBuilder.build();
|
Notification notification = mBuilder.build();
|
||||||
notification.ledARGB = 0xff00ff00;
|
notification.defaults |= Notification.DEFAULT_LIGHTS;
|
||||||
notification.ledOnMS = 1000;
|
|
||||||
notification.ledOffMS = 1000;
|
|
||||||
notification.flags |= Notification.FLAG_SHOW_LIGHTS;
|
notification.flags |= Notification.FLAG_SHOW_LIGHTS;
|
||||||
try {
|
try {
|
||||||
mNotificationManager.notify(1, notification);
|
mNotificationManager.notify(1, notification);
|
||||||
|
|
Loading…
Reference in a new issue