diff --git a/interfaces/innerkits/appexecfwk_base/include/ability_info.h b/interfaces/innerkits/appexecfwk_base/include/ability_info.h index a5bec194..c225685d 100644 --- a/interfaces/innerkits/appexecfwk_base/include/ability_info.h +++ b/interfaces/innerkits/appexecfwk_base/include/ability_info.h @@ -104,7 +104,7 @@ struct CompatibleAbilityInfo : public Parcelable { AbilityType type = AbilityType::UNKNOWN; AbilitySubType subType = AbilitySubType::UNSPECIFIED; DisplayOrientation orientation = DisplayOrientation::UNSPECIFIED; - LaunchMode launchMode = LaunchMode::STANDARD; + LaunchMode launchMode = LaunchMode::SINGLETON; std::vector permissions; std::vector deviceTypes; std::vector deviceCapabilities; @@ -158,7 +158,7 @@ struct AbilityInfo : public Parcelable { AbilityType type = AbilityType::UNKNOWN; ExtensionAbilityType extensionAbilityType = ExtensionAbilityType::UNSPECIFIED; DisplayOrientation orientation = DisplayOrientation::UNSPECIFIED; - LaunchMode launchMode = LaunchMode::STANDARD; + LaunchMode launchMode = LaunchMode::SINGLETON; std::string srcPath; std::string srcLanguage = "js"; std::vector permissions; diff --git a/services/bundlemgr/include/common_profile.h b/services/bundlemgr/include/common_profile.h index 20e8265a..9206f422 100644 --- a/services/bundlemgr/include/common_profile.h +++ b/services/bundlemgr/include/common_profile.h @@ -375,7 +375,7 @@ const std::string META_DATA_COMMON_EVENTS = "ohos.extension.staticSubscriber"; // ability const std::string ABILITY_NAME = "name"; const std::string ABILITY_LAUNCH_TYPE = "launchType"; -const std::string ABILITY_LAUNCH_TYPE_DEFAULT_VALUE = "standard"; +const std::string ABILITY_LAUNCH_TYPE_DEFAULT_VALUE = "singleton"; const std::string ABILITY_BACKGROUNDMODES = "backgroundModes"; const std::string ABILITY_CONTINUABLE = "continuable"; // extension ability diff --git a/services/bundlemgr/src/bundle_profile.cpp b/services/bundlemgr/src/bundle_profile.cpp index 3cf31cd1..57ac4695 100755 --- a/services/bundlemgr/src/bundle_profile.cpp +++ b/services/bundlemgr/src/bundle_profile.cpp @@ -236,7 +236,7 @@ struct Ability { int32_t labelId = 0; std::string uri; std::string process; - std::string launchType = "standard"; + std::string launchType = "singleton"; std::string theme; bool visible = false; bool continuable = false;