Signed-off-by: wangtiantian <wangtiantian19@huawei.com>
This commit is contained in:
wangtiantian 2021-12-23 13:38:10 +00:00 committed by Gitee
parent 197c97236a
commit 07c26e2027
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -419,11 +419,11 @@ void from_json(const nlohmann::json &jsonObject, AbilityInfo &abilityInfo)
false,
parseResult,
ArrayType::NOT_ARRAY);
GetValueIfFindKey<bool>(jsonObject,
GetValueIfFindKey<uint32_t>(jsonObject,
jsonObjectEnd,
JSON_KEY_BACKGROUND_MODES,
abilityInfo.backgroundModes,
JsonType::BOOLEAN,
JsonType::NUMBER,
false,
parseResult,
ArrayType::NOT_ARRAY);