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

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

Merge "Added null check to get brightness config."

parents 4d4f3468 9a338891
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -592,6 +592,9 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
    }

    public BrightnessConfiguration getDefaultBrightnessConfiguration() {
        if (mAutomaticBrightnessController == null) {
            return null;
        }
        return mAutomaticBrightnessController.getDefaultConfig();
    }