From e3821403e874d793219dfa8979af43e8cc1b9fdf Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Sat, 16 Aug 2025 15:30:29 +0800 Subject: [PATCH] fix wantagent trigger Signed-off-by: zhangzezhong --- frameworks/ets/ani/wantagent/src/ani_want_agent.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frameworks/ets/ani/wantagent/src/ani_want_agent.cpp b/frameworks/ets/ani/wantagent/src/ani_want_agent.cpp index 2a106a584d4..bf38acc6e90 100644 --- a/frameworks/ets/ani/wantagent/src/ani_want_agent.cpp +++ b/frameworks/ets/ani/wantagent/src/ani_want_agent.cpp @@ -70,6 +70,10 @@ void OnSendFinishedCallback(TriggerReceiveDataWorker *dataWorker) TAG_LOGE(AAFwkTag::WANTAGENT, "null dataWorker"); return; } + if (dataWorker->resultData == "canceled") { + TAG_LOGI(AAFwkTag::WANTAGENT, "canceled"); + return; + } ani_vm *etsVm = dataWorker->vm; if (etsVm == nullptr) { TAG_LOGE(AAFwkTag::WANTAGENT, "null etsVm"); -- Gitee