LogInfo("setLiveBoxInfo");
LiveBoxInfo liveBox;
DPL::Optional<WrtDB::ConfigParserData::LiveboxInfo> ConfigInfo = *it;
- DPL::String pkgid = m_context.widgetConfig.tzPkgid;
+ DPL::String appid = m_context.widgetConfig.tzAppid;
size_t found;
if(ConfigInfo->m_liveboxId != L"") {
- found = ConfigInfo->m_liveboxId.find_first_of(L".");
+ found = ConfigInfo->m_liveboxId.find_last_of(L".");
if(found != std::string::npos) {
- if(0 == ConfigInfo->m_liveboxId.compare(0, found, pkgid))
+ if(0 == ConfigInfo->m_liveboxId.compare(0, found, appid))
liveBox.setLiveboxId(ConfigInfo->m_liveboxId);
else {
DPL::String liveboxId =
- pkgid+DPL::String(L".")+ConfigInfo->m_liveboxId;
+ appid + DPL::String(L".") + ConfigInfo->m_liveboxId;
liveBox.setLiveboxId(liveboxId);
}
} else {
DPL::String liveboxId =
- pkgid+DPL::String(L".")+ConfigInfo->m_liveboxId;
+ appid + DPL::String(L".") + ConfigInfo->m_liveboxId;
liveBox.setLiveboxId(liveboxId);
}
}