Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit df13bc2d authored by Corinna Vinschen's avatar Corinna Vinschen Committed by Bruno Martins
Browse files

PowerManagerService: fix HW button illumination timeout



Change I35ac71a8274568901f962c9692788d1c682a98dd, introducing hardware
button backlight on button keypress only, also introduced a bug:

When touching a button and then performing display activity while
the buttons are still on, the buttons would keep lightened up until
the next user interaction, potentially only switched off at the next
screen off timeout.  Also, the buttons were not illuminated on
device wakeup.

This patch fixes it, together with another, long-standing problem:

When touching a hardware button, nextTimeout was set to
now + mButtonTimeout, even if mButtonTimeout is longer than the timeout
determined by the screen off timeout.  To wit, if screen timeout is set
to 15 secs, but button timeout to values > 15 secs.

Change-Id: I8a56f1d1e0138c38ed6fe294e4816a9f7f744f1e
Signed-off-by: default avatarCorinna Vinschen <xda@vinschen.de>
parent 2360e604
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment