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

Commit d6ae4a48 authored by Michael Lentine's avatar Michael Lentine Committed by Android Git Automerger
Browse files

am e2461245: am eb21986d: Merge "Update currentConfig variable when active...

am e2461245: am eb21986d: Merge "Update currentConfig variable when active display is changed." into lmp-dev

* commit 'e2461245':
  Update currentConfig variable when active display is changed.
parents 7799dc6f e2461245
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -780,6 +780,8 @@ status_t HWComposer::setPowerMode(int disp, int mode) {

status_t HWComposer::setActiveConfig(int disp, int mode) {
    LOG_FATAL_IF(disp >= VIRTUAL_DISPLAY_ID_BASE);
    DisplayData& dd(mDisplayData[disp]);
    dd.currentConfig = mode;
    if (mHwc && hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_4)) {
        return (status_t)mHwc->setActiveConfig(mHwc, disp, mode);
    } else {