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

Commit b34c8104 authored by thecrazyskull's avatar thecrazyskull Committed by Thecrazyskull
Browse files

LocalDisplayAdapter: don't crash when no color modes available

Test: none

Change-Id: Ic11b5b66864fdd97b290722cba534b2aa38ac054
parent 5a45170f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -285,6 +285,7 @@ final class LocalDisplayAdapter extends DisplayAdapter {
                int activeColorMode) {
            List<Integer> pendingColorModes = new ArrayList<>();

            if (colorModes == null) return false;
            // Build an updated list of all existing color modes.
            boolean colorModesAdded = false;
            for (int colorMode: colorModes) {