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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user