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

Skip to content
Unverified Commit f5bf08d1 authored by beanstown106's avatar beanstown106 Committed by Michael Bestas
Browse files

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: default avatarPranav Vashi <neobuddy89@gmail.com>

Change-Id: I49222892c8fbc8a63af580c763e8987b225b11d2
Signed-off-by: default avatarPranav Vashi <neobuddy89@gmail.com>
parent be6878a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment