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

Commit b3ee221e authored by Pierre-Hugues Husson's avatar Pierre-Hugues Husson Committed by Michael Bestas
Browse files

Fix other lights when backlight uses SurfaceController API

Only backlight should go to SurfaceControler, other lights are still using good old Lights API.

Change-Id: I0c55bae02ec3a9d762b90b4ecf31dc63d29530b5
parent 64b76d4d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -305,6 +305,7 @@ public class LightsService extends SystemService {
                // right now we just fall back to the old path through Lights brightessMode is
                // anything but USER or the device shouldBeInLowPersistenceMode().
                if (brightnessMode == BRIGHTNESS_MODE_USER && !shouldBeInLowPersistenceMode()
                        && mHwLight.type == LightsManager.LIGHT_ID_BACKLIGHT
                        && mSurfaceControlMaximumBrightness == 255) {
                    // New system
                    // TODO: the last check should be mSurfaceControlMaximumBrightness != 0; the