Merge "Do not issue config change command when not needed" into mnc-dr-dev

This commit is contained in:
Jorim Jaggi
2015-09-25 06:54:42 +00:00
committed by Android (Google) Code Review

View File

@@ -544,7 +544,7 @@ final class LocalDisplayAdapter extends DisplayAdapter {
physIndex = findDisplayInfoIndexLocked(colorTransformId, modeId);
}
}
if (physIndex > 0 && mActivePhysIndex == physIndex) {
if (mActivePhysIndex == physIndex) {
return;
}
SurfaceControl.setActiveConfig(getDisplayTokenLocked(), physIndex);