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

Skip to content
Commit 0e1aa0d2 authored by Piotr Wilczyński's avatar Piotr Wilczyński
Browse files

Enable screen off brightness sensor based on policy

Tapping the fingerprint sensor changes the display state to ON. It's not necessary to unsubscribe from the sensor at that point (and re-subscribe if the fingerprint wasn't recognized) because the doze brightness is still being used.

Additionaly:
- add missing tests
- rename isEnabled to isDisplayEnabled - isEnabled sounded like the sensor or the strategy is enabled/disabled

Bug: 341827308
Test: atest DisplayPowerControllerTest, DisplayBrightnessControllerTest, AutoBrightnessFallbackStrategyTest
Flag: EXEMPT bugfix
Change-Id: Ifd80667704cd91a29c317333f4e2a976127b67f5
parent ab4779e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment