mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-27 00:20:44 +00:00
!1065 remove unfocus check
Merge pull request !1065 from chenbin/master
This commit is contained in:
commit
6c5e89d255
@ -385,8 +385,7 @@ int32_t DMSContinueSendMgr::DealUnfocusedBusiness(const int32_t missionId, Unfoc
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
if (reason != UnfocusedReason::TIMEOUT) {
|
if (reason != UnfocusedReason::TIMEOUT) {
|
||||||
bool isContinue = IsContinue(missionId, bundleName);
|
if (!IsContinue(missionId, bundleName)) {
|
||||||
if (!isContinue) {
|
|
||||||
HILOGE("Not current mission to be continued, missionId: %{public}d", missionId);
|
HILOGE("Not current mission to be continued, missionId: %{public}d", missionId);
|
||||||
EraseFocusedMission(bundleName, missionId, reason);
|
EraseFocusedMission(bundleName, missionId, reason);
|
||||||
return NO_MISSION_INFO_FOR_MISSION_ID;
|
return NO_MISSION_INFO_FOR_MISSION_ID;
|
||||||
@ -395,13 +394,6 @@ int32_t DMSContinueSendMgr::DealUnfocusedBusiness(const int32_t missionId, Unfoc
|
|||||||
RemoveMMIListener();
|
RemoveMMIListener();
|
||||||
#endif
|
#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;
|
uint16_t bundleNameId = 0;
|
||||||
uint8_t continueTypeId = 0;
|
uint8_t continueTypeId = 0;
|
||||||
ret = GetAccessTokenIdSendEvent(bundleName, reason, bundleNameId, continueTypeId);
|
ret = GetAccessTokenIdSendEvent(bundleName, reason, bundleNameId, continueTypeId);
|
||||||
|
Loading…
Reference in New Issue
Block a user