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

Commit 56a3171e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "SurfaceFlinger: allow confing change in AoD"

parents 8ef26834 9f938570
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -956,11 +956,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