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

Commit 98579af3 authored by Piotr Wilczyński's avatar Piotr Wilczyński Committed by Android (Google) Code Review
Browse files

Merge "Switch to doze auto-brightness mode based on screen state" into main

parents 8cbcd797 8deb9fbc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1379,7 +1379,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
        // Switch to doze auto-brightness mode if needed
        if (mFlags.areAutoBrightnessModesEnabled() && mAutomaticBrightnessController != null
                && !mAutomaticBrightnessController.isInIdleMode()) {
            mAutomaticBrightnessController.switchMode(mPowerRequest.policy == POLICY_DOZE
            mAutomaticBrightnessController.switchMode(Display.isDozeState(state)
                    ? AUTO_BRIGHTNESS_MODE_DOZE : AUTO_BRIGHTNESS_MODE_DEFAULT);
        }