mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-31 16:40:45 +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);
|
||||
mNotificationManager.cancel(1);
|
||||
Notification notification = mBuilder.build();
|
||||
notification.ledARGB = 0xff00ff00;
|
||||
notification.ledOnMS = 1000;
|
||||
notification.ledOffMS = 1000;
|
||||
notification.defaults |= Notification.DEFAULT_LIGHTS;
|
||||
notification.flags |= Notification.FLAG_SHOW_LIGHTS;
|
||||
try {
|
||||
mNotificationManager.notify(1, notification);
|
||||
|
|
Loading…
Reference in a new issue