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

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

am 501cdb21: am 3efb37d2: am 636e6b73: Minor tweak to screen dimming policy.

* commit '501cdb21024050ec44ef9fbfcf8c4ce0a248666a':
  Minor tweak to screen dimming policy.
parents 61a9c947 a621dc5a
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;
            }