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

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

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

am: 3a87cb01

* commit '3a87cb01':
  Animate backlight quickly when display state request to change or power mode changed
parents 5defc912 3a87cb01
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.