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

Commit 3b3cbb53 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

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
parent ad26dc5f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);