This module allows the LED to stay on while the screen is on. So if you receive a message while the screen is on, the led will turn on.
For my decision, the led will stay on also if you unlock the phone with the led on, or if you turn off the screen with the led on. You can turn off the led only pulling down the notification bar (you don't have to read the notification). Of course, if there are no bugs: i've seen that this is working with the 'charging led', or the sms, or some Tasker tasks, for example. With WhatsApp it doesn't seem to work, but this could be a WhatsApp problem. Or my problem. Of course if you have the screen on and you receive a WhatsApp message, the led will turn on.
I've already implemented a way to change that, as you can see on GitHub: using the code i've write, you can for exampe turn off the led when the screen turns on. Or something else... But this is not implemented in the apk, so...
This works only from Lollipop . For Android 4.x, there is the beautiful XLED.
- Initial release
Big thanks to @C3C076 for GravityBox: i've worked on this using his code, basically.
Thanks also to cinhoo, author of XLED. His module give me this idea. Well, because XLED doesn't do that on Lollipop, and i was sad...