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

Commit 829390b2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix adb shell command for screen_brightness" into rvc-dev am: 9024ce52

Change-Id: Ib8bf32d401684e9ee4f42653e6e2b037ce8c9f69
parents 2f190898 9024ce52
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -390,6 +390,10 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
    private ObjectAnimator mColorFadeOffAnimator;
    private RampAnimator<DisplayPowerState> mScreenBrightnessRampAnimator;

    // The brightness synchronizer to allow changes in the int brightness value to be reflected in
    // the float brightness value and vice versa.
    @Nullable
    private final BrightnessSynchronizer mBrightnessSynchronizer;

    /**
     * Creates the display power controller.
@@ -406,6 +410,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
        mWindowManagerPolicy = LocalServices.getService(WindowManagerPolicy.class);
        mBlanker = blanker;
        mContext = context;
        mBrightnessSynchronizer = new BrightnessSynchronizer(context);
        mDisplayDevice = displayDevice;

        PowerManager pm =  context.getSystemService(PowerManager.class);