Skip to content

Commit 32c79c2

Browse files
committed
Update AppTv.cpp
1 parent 51fbfd8 commit 32c79c2

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

examples/tv-app/tv-common/src/AppTv.cpp

+7-6
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,7 @@ void ContentAppFactoryImpl::InstallContentApp(uint16_t vendorId, uint16_t produc
665665
mContentApps.emplace_back(std::move(ptr));
666666
}
667667

668+
#if CHIP_DEVICE_CONFIG_ENABLE_BOTH_COMMISSIONER_AND_COMMISSIONEE
668669
// Get the list of node ids
669670
std::set<NodeId> nodeIds = ContentAppPlatform::GetInstance().GetNodeIdsForContentApp(vendorId, productId);
670671

@@ -673,12 +674,12 @@ void ContentAppFactoryImpl::InstallContentApp(uint16_t vendorId, uint16_t produc
673674
{
674675
auto app = contentApp.get();
675676

676-
// if (app->MatchesPidVid(productId, vendorId))
677-
// {
678-
// CatalogVendorApp vendorApp = app->GetApplicationBasicDelegate()->GetCatalogVendorApp();
677+
if (app->MatchesPidVid(productId, vendorId))
678+
{
679+
CatalogVendorApp vendorApp = app->GetApplicationBasicDelegate()->GetCatalogVendorApp();
679680

680-
// GetContentAppFactoryImpl()->LoadContentApp(vendorApp);
681-
// }
681+
GetContentAppFactoryImpl()->LoadContentApp(vendorApp);
682+
}
682683

683684
// update the list of node ids with content apps allowed vendor list
684685
for (const auto & allowedVendor : app->GetApplicationBasicDelegate()->GetAllowedVendorList())
@@ -688,7 +689,7 @@ void ContentAppFactoryImpl::InstallContentApp(uint16_t vendorId, uint16_t produc
688689
nodeIds.insert(tempNodeIds.begin(), tempNodeIds.end());
689690
}
690691
}
691-
#if CHIP_DEVICE_CONFIG_ENABLE_BOTH_COMMISSIONER_AND_COMMISSIONEE
692+
692693
// refresh ACLs
693694
for (const auto & nodeId : nodeIds)
694695
{

0 commit comments

Comments
 (0)