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

Commit 9f938570 authored by Ady Abraham's avatar Ady Abraham
Browse files

SurfaceFlinger: allow confing change in AoD

Remove the restriction in setDesiredActiveConfig when we are in '
AoD mode as there are no limitations in setting the config during AoD.

Test: Set power mode to HWC_POWER_MODE_DOZE and change active configs
Bug: 128635447
Change-Id: Iff74d3deb2c4a72428f916d35676b0b60436e2de
parent 70bfd44f
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -955,11 +955,6 @@ void SurfaceFlinger::setDesiredActiveConfig(const ActiveConfigInfo& info) {
        ALOGW("Attempt to set active config %d for virtual display", info.configId);
        return;
    }
    int currentDisplayPowerMode = display->getPowerMode();
    if (currentDisplayPowerMode != HWC_POWER_MODE_NORMAL) {
        // Don't change active config when in AoD.
        return;
    }

    // Don't check against the current mode yet. Worst case we set the desired
    // config twice. However event generation config might have changed so we need to update it