Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[display] Wait for p-sensor state before acting on D-Bus requests
When display on/dim requests are received over D-Bus, they must be subjected to proximity sensor check. However in on-demand proximity sensor mode this is not immediately available. Use the on-proximity action queue, so that proximity sensor gets powered up and display state requests are acted on once the sensor state is known. Also refactor the method call handler functionality so that repetitive copy-paste code can be eliminated. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
2 changed files
with
111 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters