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

Commit 3ed02ffe authored by Santos Cordon's avatar Santos Cordon Committed by Android (Google) Code Review
Browse files

Merge "Fix crash on device without nits-backlight mapping" into sc-dev

parents abc738e1 01b6dd29
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -790,7 +790,7 @@ final class LocalDisplayAdapter extends DisplayAdapter {
                        try {
                            final float backlight = brightnessToBacklight(brightness);
                            float nits = NITS_INVALID;
                            float sdrBacklight = PowerManager.BRIGHTNESS_INVALID_FLOAT;
                            float sdrBacklight = backlight;
                            float sdrNits = NITS_INVALID;
                            if (getDisplayDeviceConfig().hasNitsMapping()
                                    && sdrBrightness != PowerManager.BRIGHTNESS_INVALID_FLOAT) {