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

Commit 39473b75 authored by Rupesh Bansal's avatar Rupesh Bansal Committed by Automerger Merge Worker
Browse files

Merge "Fix the issue of null previous brightness reason in the logs" into udc-dev am: 9cbb43e7

parents 6db555e9 9cbb43e7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1148,6 +1148,7 @@ final class DisplayPowerController2 implements AutomaticBrightnessController.Cal
        final int previousPolicy;
        boolean mustInitialize = false;
        int brightnessAdjustmentFlags = 0;
        mBrightnessReasonTemp.set(null);
        mTempBrightnessEvent.reset();
        SparseArray<DisplayPowerControllerInterface> displayBrightnessFollowers;
        synchronized (mLock) {
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ public final class BrightnessEvent {
     * A utility to reset the BrightnessEvent to default values
     */
    public void reset() {
        mReason.set(null);
        mReason = new BrightnessReason();
        mTime = SystemClock.uptimeMillis();
        mPhysicalDisplayId = "";
        // Lux values