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

Commit 2e9c703f authored by Ady Abraham's avatar Ady Abraham
Browse files

SF: HWComposer::isConnected can be called before a display is connected

And for that reason we should not log it as an error.

Bug: 181269159
Test: boot
Change-Id: Ib0c060bdae1bc8d73e772900b7d3367e25599b13
parent 4fd10d8d
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -322,10 +322,13 @@ void HWComposer::destroyLayer(HalDisplayId displayId, HWC2::Layer* layer) {
}

bool HWComposer::isConnected(PhysicalDisplayId displayId) const {
    RETURN_IF_INVALID_DISPLAY(displayId, false);
    if (mDisplayData.count(displayId)) {
        return mDisplayData.at(displayId).hwcDisplay->isConnected();
    }

    return false;
}

std::vector<HWComposer::HWCDisplayMode> HWComposer::getModes(PhysicalDisplayId displayId) const {
    RETURN_IF_INVALID_DISPLAY(displayId, {});