Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[powerkey] Do not differentiate long/short presses in display off. JB…
…#39431 Whether a long press can even be detected in display off state varies from one device to another and depending on whether the device is suspended or not. This means behavior on power key press is not deterministic and uniform across all devices as in some scenarios display power up begins already on power key press and in others the power key has to be also released before actions are taken. Unless an attempt as been made to bind actions to long power key press from display is off state, synthesize power key release immediately after power key press event to terminate timer used to differentiate between long and short presses. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information