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

Commit b3e277de authored by Rashed Abdel-Tawab's avatar Rashed Abdel-Tawab Committed by Rashed Abdel-Tawab
Browse files

Revert "NightDisplayController: report unavailable if livedisplay feature is present"

This reverts commit 5ef7a9bb.

Change-Id: I4a23293088b65b62185002701113a62f32d495c6
parent 93f33c93
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -558,12 +558,10 @@ public final class ColorDisplayController {
    }

    /**
     * Returns {@code true} if Night display is supported by the device,
     * unless LiveDisplay feature is available.
     * Returns {@code true} if Night display is supported by the device.
     */
    public static boolean isAvailable(Context context) {
        return context.getResources().getBoolean(R.bool.config_nightDisplayAvailable) &&
                !context.getPackageManager().hasSystemFeature("org.lineageos.livedisplay");
        return context.getResources().getBoolean(R.bool.config_nightDisplayAvailable);
    }

    /**