mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
0820 Signed-off-by: 帝俊 <yexinjie@huawei.com>
This commit is contained in:
@@ -1070,7 +1070,7 @@ std::shared_ptr<AppExecFwk::ADelegatorAbilityProperty> JsAbility::CreateADelegat
|
||||
} else {
|
||||
std::string::size_type pos = GetAbilityName().find(GetApplicationInfo()->bundleName);
|
||||
if (pos == std::string::npos || pos != 0) {
|
||||
property->fullName_ = GetApplicationInfo()->bundleName + "" + GetAbilityName();
|
||||
property->fullName_ = GetApplicationInfo()->bundleName + "." + GetAbilityName();
|
||||
} else {
|
||||
property->fullName_ = GetAbilityName();
|
||||
}
|
||||
|
||||
@@ -307,7 +307,7 @@ bool SimulatorImpl::ParseAbilityInfo(const std::string &abilitySrcPath, const st
|
||||
abilityInfo_ = AppExecFwk::BundleContainer::GetInstance().GetAbilityInfo(options_.moduleName, abilityName);
|
||||
} else {
|
||||
auto path = abilitySrcPath;
|
||||
path.erase(path.rfind(""));
|
||||
path.erase(path.rfind("."));
|
||||
auto abilityNameFromPath = path.substr(path.rfind('/') + 1, path.length());
|
||||
abilityInfo_ = AppExecFwk::BundleContainer::GetInstance().GetAbilityInfo(
|
||||
options_.moduleName, abilityNameFromPath);
|
||||
|
||||
Reference in New Issue
Block a user