Merge "Fix incorrect evaluation of TvMessage count" into udc-dev
This commit is contained in:
@@ -418,7 +418,7 @@ JTvInputHal::TvInputCallback::TvInputCallback(JTvInputHal* hal) {
|
|||||||
::ndk::ScopedAStatus JTvInputHal::TvInputCallback::notifyTvMessageEvent(
|
::ndk::ScopedAStatus JTvInputHal::TvInputCallback::notifyTvMessageEvent(
|
||||||
const AidlTvMessageEvent& event) {
|
const AidlTvMessageEvent& event) {
|
||||||
const std::string DEVICE_ID_SUBTYPE = "device_id";
|
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
|
mHal->mLooper
|
||||||
->sendMessage(new NotifyTvMessageHandler(mHal,
|
->sendMessage(new NotifyTvMessageHandler(mHal,
|
||||||
TvMessageEventWrapper::createEventWrapper(
|
TvMessageEventWrapper::createEventWrapper(
|
||||||
|
|||||||
Reference in New Issue
Block a user