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

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

Fix auto-brightness when display on and policy doze

This is restoring the original behaviour from before ag/26149495 was merged - don't run auto-brightness if we have POLICY_DOZE and display STATE_ON.

Also, if config allows auto-brightness in doze, enable it if policy is POLICY_DOZE so that we can keep running auto-brightness after a tilt-to-wake gesture (after which we have POLICY_DOZE and display STATE_ON), but not if the screen is off.

Bug: 341827308
Test: AutomaticBrightnessStrategyTest, AutomaticBrightnessStrategy2Test
Flag: not needed, this is a regression fix
Change-Id: Idb92abfa5ec4823125d1b9076941df0e724f030e
parent 73e875a6
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