From 6dd82f14c9a7b1a6e44dc57fb3a2c992bbacbc6e Mon Sep 17 00:00:00 2001 From: c30051536 Date: Sat, 31 Aug 2024 11:26:10 +0800 Subject: [PATCH] remove unfocus check Signed-off-by: c30051536 --- .../src/mission/dms_continue_send_manager.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/services/dtbschedmgr/src/mission/dms_continue_send_manager.cpp b/services/dtbschedmgr/src/mission/dms_continue_send_manager.cpp index 51dc3528..8629651c 100644 --- a/services/dtbschedmgr/src/mission/dms_continue_send_manager.cpp +++ b/services/dtbschedmgr/src/mission/dms_continue_send_manager.cpp @@ -385,8 +385,7 @@ int32_t DMSContinueSendMgr::DealUnfocusedBusiness(const int32_t missionId, Unfoc return ret; } if (reason != UnfocusedReason::TIMEOUT) { - bool isContinue = IsContinue(missionId, bundleName); - if (!isContinue) { + if (!IsContinue(missionId, bundleName)) { HILOGE("Not current mission to be continued, missionId: %{public}d", missionId); EraseFocusedMission(bundleName, missionId, reason); return NO_MISSION_INFO_FOR_MISSION_ID; @@ -395,13 +394,6 @@ int32_t DMSContinueSendMgr::DealUnfocusedBusiness(const int32_t missionId, Unfoc RemoveMMIListener(); #endif } - ret = CheckContinueState(missionId); - if (ret != ERR_OK) { - HILOGE("Continue state is inactive or can't be obtained, mission id : %{public}d, ret: %{public}d", - missionId, ret); - EraseFocusedMission(bundleName, missionId, reason); - return ret; - } uint16_t bundleNameId = 0; uint8_t continueTypeId = 0; ret = GetAccessTokenIdSendEvent(bundleName, reason, bundleNameId, continueTypeId);