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

Commit fa6ad346 authored by Jeff Brown's avatar Jeff Brown Committed by Android Git Automerger
Browse files

am 636e6b73: Minor tweak to screen dimming policy.

* commit '636e6b73fe63aacf7011f847d7397d84c5b742b8':
  Minor tweak to screen dimming policy.
parents 2c5c79f7 5c8ea084
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -566,8 +566,10 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
        // Apply dimming by at least some minimum amount when user activity
        // timeout is about to expire.
        if (mPowerRequest.policy == DisplayPowerRequest.POLICY_DIM) {
            if (brightness > mScreenBrightnessRangeMinimum) {
                brightness = Math.max(Math.min(brightness - SCREEN_DIM_MINIMUM_REDUCTION,
                        mScreenBrightnessDimConfig), mScreenBrightnessRangeMinimum);
            }
            if (!mAppliedDimming) {
                slowChange = false;
            }