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

Commit b48942e0 authored by Luis Hector Chavez's avatar Luis Hector Chavez
Browse files

Add a null-check for mScreenBrightnessRampAnimator when dumping

This change makes mScreenBrightnessRampAnimator be consistent with all
the other members of DisplayPowerController that are created on
initialize().

Bug: 111900798
Test: dumping DisplayPowerController no longer brings system_server when
      called before DisplayPowerController.initialize()

Change-Id: I91200f8bb84c93e14effa93bdfdf9ded6df7c830
parent 48dfde74
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1659,8 +1659,10 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
        pw.println("  mReportedToPolicy=" +
                reportedToPolicyToString(mReportedScreenStateToPolicy));

        if (mScreenBrightnessRampAnimator != null) {
            pw.println("  mScreenBrightnessRampAnimator.isAnimating()=" +
                    mScreenBrightnessRampAnimator.isAnimating());
        }

        if (mColorFadeOnAnimator != null) {
            pw.println("  mColorFadeOnAnimator.isStarted()=" +