Long-press power while display is off for torch
Fixups for twelve (neobuddy89)
Fixups for ten (sam3000)
Squash of:
Author: beanstown106 <nbenis106@gmail.com>
Date: Sun Jan 17 09:14:19 2016 -0500
policy: Long-press power while display is off for torch
Long-press the power button while the display is off
to turn the torchlight on and off.
Credits:
- Lion0738: The main hooks here:
https://github.com/lion0738/android_frameworks_base/commit/9af2b7844a4d973c8b6c542d7937f56a24a7e5f1
- Atlantis: The logic on where to hook into this for power button only
- Alex Cruz: Helping and giving me some pointers along the way
Change-Id: I14365389990eb06daaa127f5db66df45abf6c064
Author: Sam Mortimer <sam@mortimer.me.uk>
Date: Sat Dec 24 13:22:53 2016 -0800
[1/3] Torch long press power: add auto-off function
Change-Id: Icdf50082324f8292859f0df8b271e730b02c84e7
Author: Pranav Vashi <neobuddy89@gmail.com>
Date: Fri Dec 3 08:53:59 2021 +0530
Fix long-press power for torch on Android S
* We must define FLAG_IMMUTABLE when creating PendingIntent on Android S
Signed-off-by:
Pranav Vashi <neobuddy89@gmail.com>
Author: Sam Mortimer <sam@mortimer.me.uk>
Date: Tue Jan 28 00:47:27 2020 -0800
fw/b torch: Let long press power turn torch off when screen is on.
* When the torch is on, any subsequent long press power is almost certainly
intended to turn the torch off (regardless of screen state). Therefore,
always allow long press power to toggle torch if the torch is on.
* Tested: long press power toggles torch on/off with screen off.
long press power toggles torch off with screen on and torch on.
long press power brings up global actions menu with screen on and torch off.
Change-Id: I932caa9f3be06d14408aea2ecb3a6eca73e052e0
Change-Id: I1aaf8417b865df79e8a1a8d0039b3b860a46be78
Loading
Please register or sign in to comment