Do not issue config change command when not needed

This caused a but where WindowManager was blocked on this to perform a
layout, leading to delays in screen wake-ups.

Bug: 24383169
Change-Id: I42bc08dae9057060f09c301328bb4839a970c597
This commit is contained in:
Jorim Jaggi
2015-09-24 17:35:58 -07:00
parent ad26dc5f15
commit 3b3cbb5325

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);