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

Commit a24822dd authored by Weilun Du's avatar Weilun Du Committed by Android (Google) Code Review
Browse files

Merge "Remove warning when associated display is ADISPLAY_ID_NONE."

parents 302d8d4b d00847d7
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -782,12 +782,8 @@ bool InputReader::canDispatchToDisplay(int32_t deviceId, int32_t displayId) {

    std::optional<int32_t> associatedDisplayId = device->getAssociatedDisplayId();
    // No associated display. By default, can dispatch to all displays.
    if (!associatedDisplayId) {
        return true;
    }

    if (*associatedDisplayId == ADISPLAY_ID_NONE) {
        ALOGW("Device %s is associated with display ADISPLAY_ID_NONE.", device->getName().c_str());
    if (!associatedDisplayId ||
            *associatedDisplayId == ADISPLAY_ID_NONE) {
        return true;
    }