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

Commit 12e2ec51 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Use correct brightness when manual brightness is enabled."

parents dea16ae8 7bb22342
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -839,11 +839,8 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
        }

        // Apply manual brightness.
        // Use the current brightness setting from the request, which is expected
        // provide a nominal default value for the case where auto-brightness
        // is not ready yet.
        if (brightness < 0) {
            brightness = clampScreenBrightness(mLastUserSetScreenBrightness);
            brightness = clampScreenBrightness(mCurrentScreenBrightnessSetting);
        }