Fix incorrect evaluation of TvMessage count
Bug: 278628657 Test: atest TvInputServiceTest Change-Id: Ica32ffc82ec1f6850df113397ed9bd5f555eaf58
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user