mirror of
https://github.com/openharmony/appexecfwk_standard.git
synced 2026-07-19 14:06:09 -04:00
!1298 change default ability launch type to singleton.
Merge pull request !1298 from ccll/OpenHarmony-3.1-Release
This commit is contained in:
@@ -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<std::string> permissions;
|
||||
std::vector<std::string> deviceTypes;
|
||||
std::vector<std::string> 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<std::string> permissions;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user