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

Commit 15a87ff0 authored by Steve Kondik's avatar Steve Kondik
Browse files

display: Fix crash when no display modes present on HWC2

Change-Id: I5fd6704eebca63a5c72de05f92fead9674001465
parent b0ff45ec
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -284,6 +284,10 @@ final class LocalDisplayAdapter extends DisplayAdapter {

        private boolean updateColorModesLocked(int[] colorModes,
                int activeColorMode) {
            if (colorModes == null) {
                return false;
            }

            List<Integer> pendingColorModes = new ArrayList<>();

            // Build an updated list of all existing color modes.