Signed-off-by: caochunlei <caochunlei1@huawei.com>
This commit is contained in:
caochunlei 2022-08-11 16:12:53 +08:00
parent d7ce61a65a
commit 65479f56d5

View File

@ -29,7 +29,7 @@
namespace OHOS {
namespace AAFwk {
namespace {
constexpr uint32_t SCENE_FLAG_KEYCARD = 1;
constexpr uint32_t SCENE_FLAG_KEYGUARD = 1;
constexpr char EVENT_KEY_UID[] = "UID";
constexpr char EVENT_KEY_PID[] = "PID";
constexpr char EVENT_KEY_MESSAGE[] = "MSG";
@ -633,7 +633,7 @@ int MissionListManager::MinimizeAbilityLocked(const std::shared_ptr<AbilityRecor
abilityRecord->SetMinimizeReason(fromUser);
MoveToBackgroundTask(abilityRecord);
if (abilityRecord->lifeCycleStateInfo_.sceneFlag != SCENE_FLAG_KEYCARD) {
if (abilityRecord->lifeCycleStateInfo_.sceneFlag != SCENE_FLAG_KEYGUARD) {
UpdateMissionTimeStamp(abilityRecord);
}
@ -1474,7 +1474,7 @@ void MissionListManager::MoveToBackgroundTask(const std::shared_ptr<AbilityRecor
abilityRecord->SetIsNewWant(false);
NotifyMissionCreated(abilityRecord);
if (abilityRecord->IsNeedTakeSnapShot()) {
if (abilityRecord->lifeCycleStateInfo_.sceneFlag != SCENE_FLAG_KEYCARD) {
if (abilityRecord->lifeCycleStateInfo_.sceneFlag != SCENE_FLAG_KEYGUARD) {
UpdateMissionSnapshot(abilityRecord);
}
} else {