mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2025-01-02 05:09:34 +00:00
Signed-off-by: caochunlei <caochunlei1@huawei.com>
This commit is contained in:
parent
d7ce61a65a
commit
65479f56d5
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user