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

Commit 3a87cb01 authored by Michael Wright's avatar Michael Wright Committed by Gerrit Code Review
Browse files

Merge "Animate backlight quickly when display state request to change or power mode changed"

parents a15ef2ab f0cb46cd
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -673,6 +673,9 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
                slowChange = false;
            }
            mAppliedDimming = true;
        } else if (mAppliedDimming) {
            slowChange = false;
            mAppliedDimming = false;
        }

        // If low power mode is enabled, cut the brightness level by half
@@ -685,6 +688,9 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
                slowChange = false;
            }
            mAppliedLowPower = true;
        } else if (mAppliedLowPower) {
            slowChange = false;
            mAppliedLowPower = false;
        }

        // Animate the screen brightness when the screen is on or dozing.