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

Commit bc6f804b authored by Marin Shalamanov's avatar Marin Shalamanov Committed by Automerger Merge Worker
Browse files

Merge "[SF] Don't reset display state on reconnection" into rvc-dev am: 810a7553

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/11710358

Change-Id: Ifff2cbf59238ac785e4a70f0cb4db6a1af763426
parents a514e13e 810a7553
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2675,7 +2675,8 @@ void SurfaceFlinger::processDisplayChanged(const wp<IBinder>& displayToken,
        }
        processDisplayAdded(displayToken, currentState);
        if (currentState.physical) {
            initializeDisplays();
            const auto display = getDisplayDeviceLocked(displayToken);
            setPowerModeInternal(display, hal::PowerMode::ON);
        }
        return;
    }