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

Commit d0fff528 authored by thecrazyskull's avatar thecrazyskull Committed by android-build-merger
Browse files

Merge "LocalDisplayAdapter: don't crash when no color modes available" am: 24218db9

am: f15075c9

Change-Id: Idcccd811808be32b492d8e2cb753439fc4d9de46
parents b46a93ff f15075c9
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) {