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

Commit 9c0a392f authored by Daniel Solomon's avatar Daniel Solomon Committed by android-build-merger
Browse files

Merge "Fix Display White Balance color temperature on enable" into qt-dev am: 7cb07c1f

am: aa785684

Change-Id: Id9226449e4a147246f6274c6aadbc83b4edf3eb3
parents bdb800f6 aa785684
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -271,7 +271,7 @@ public class DisplayWhiteBalanceController implements
        final long time = System.currentTimeMillis();
        float ambientColorTemperature = mColorTemperatureFilter.getEstimate(time);

        if (mAmbientToDisplayColorTemperatureSpline != null) {
        if (mAmbientToDisplayColorTemperatureSpline != null && ambientColorTemperature != -1.0f) {
            ambientColorTemperature =
                mAmbientToDisplayColorTemperatureSpline.interpolate(ambientColorTemperature);
        }