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

Commit 93186220 authored by Alistair Delva's avatar Alistair Delva
Browse files

Remove wtf if no display nits mapping exists

Devices without a backlight will not provide nits mappings via hardware
composer, which is perfectly normal and has no side effects.

Bug: 234889959
Change-Id: I7f5f0e4e24bfb38335dfe09102b36b106a904d2d
parent ba550748
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -246,7 +246,6 @@ public class DisplayDeviceConfig {
     */
    public float getNitsFromBacklight(float backlight) {
        if (mBacklightToNitsSpline == null) {
            Slog.wtf(TAG, "requesting nits when no mapping exists.");
            return NITS_INVALID;
        }
        backlight = Math.max(backlight, mBacklightMinimum);