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

am: f15075c9f8

Change-Id: Idcccd811808be32b492d8e2cb753439fc4d9de46
This commit is contained in:
thecrazyskull
2017-01-23 17:42:04 +00:00
committed by android-build-merger

View File

@@ -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) {