PowerManagerService: Allow to light up buttons only when pressed
Author: Anas Karbila <anaskarbila@gmail.com>
Date: Sat Jun 3 03:21:32 2017 +0200
PowerManagerService: Allow to light up buttons only when pressed
* Right now capactive, lit hardware keys are being
lit every time you either touch them or the screen.
But some devices handle this differently on stock:
Display touch => buttons not lit
Buttons touch => buttons lit
* Thus, add a setting in order to allow the user
to choose the preferred behavior.
Change-Id: I35ac71a8274568901f962c9692788d1c682a98dd
Author: Corinna Vinschen <xda@vinschen.de>
Date: Sun Aug 6 15:05:54 2017 +0200
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: Corinna Vinschen <xda@vinschen.de>
Change-Id: I5b486e65a5b7d9d16590941df0af4d9c604dedc4
Loading
Please register or sign in to comment