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

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

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

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

Change-Id: I24f5c280be0107080d66ee793999e5e0e5ffe8ac
parents c3f35951 c0f87db0
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) {