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

Commit f43fef0a authored by David Zhao's avatar David Zhao
Browse files

Fix incorrect evaluation of TvMessage count

Bug: 278628657
Test: atest TvInputServiceTest
Change-Id: Ica32ffc82ec1f6850df113397ed9bd5f555eaf58
parent 0fda4ea9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -418,7 +418,7 @@ JTvInputHal::TvInputCallback::TvInputCallback(JTvInputHal* hal) {
::ndk::ScopedAStatus JTvInputHal::TvInputCallback::notifyTvMessageEvent(
        const AidlTvMessageEvent& event) {
    const std::string DEVICE_ID_SUBTYPE = "device_id";
    if (sizeof(event.messages) > 0 && event.messages[0].subType == DEVICE_ID_SUBTYPE) {
    if (event.messages.size() > 1 && event.messages[0].subType == DEVICE_ID_SUBTYPE) {
        mHal->mLooper
                ->sendMessage(new NotifyTvMessageHandler(mHal,
                                                         TvMessageEventWrapper::createEventWrapper(