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

Commit f68e5665 authored by Michael Wright's avatar Michael Wright Committed by android-build-merger
Browse files

Merge "Decrease the inferred auto-brightness adjustment at the extremes." into pi-dev

am: b7185633

Change-Id: I76e456b7f000cedb183115f0abd306957e983ffa
parents ceaf60dc b7185633
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -341,7 +341,7 @@ public abstract class BrightnessMappingStrategy {
        // Extreme edge cases: use a simpler heuristic, as proper gamma correction around the edges
        // affects the curve rather drastically.
        if (currentBrightness <= 0.1f || currentBrightness >= 0.9f) {
            adjustment = (desiredBrightness - currentBrightness) * 2;
            adjustment = (desiredBrightness - currentBrightness);
        // Edge case: darkest adjustment possible.
        } else if (desiredBrightness == 0) {
            adjustment = -1;