From a83a61df75282b92445f37fb286a333751654e46 Mon Sep 17 00:00:00 2001 From: abonadon-hk Date: Fri, 22 Aug 2025 16:40:37 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E6=8A=A2=E5=8D=A0=E5=9C=BA=E6=99=AF?= =?UTF-8?q?=E6=B8=85=E7=90=86=E5=86=97=E4=BD=99context?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: abonadon-hk Change-Id: Idc1565af940847ee6dbbd804c693175be9554732 --- services/context/inc/widget_client.h | 2 +- services/context/src/widget_context.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/services/context/inc/widget_client.h b/services/context/inc/widget_client.h index d5fb6359e..7c788ae0d 100644 --- a/services/context/inc/widget_client.h +++ b/services/context/inc/widget_client.h @@ -54,6 +54,7 @@ public: void SetSensorInfo(const std::string &info); void Reset(); void ForceStopAuth(); + void ClearSchedule(uint64_t contextId); // extra info void SetChallenge(const std::vector &challenge); @@ -68,7 +69,6 @@ private: void InsertScheduleNode(uint64_t contextId, std::shared_ptr &scheduleNode); void RemoveScheduleNode(uint64_t contextId); std::shared_ptr GetScheduleNode(uint64_t contextId); - void ClearSchedule(uint64_t contextId); void WidgetLoad(uint64_t contextId, std::vector &authTypeList); void WidgetRelease(uint64_t contextId, std::vector &authTypeList); diff --git a/services/context/src/widget_context.cpp b/services/context/src/widget_context.cpp index f937ffe55..b69f6880b 100644 --- a/services/context/src/widget_context.cpp +++ b/services/context/src/widget_context.cpp @@ -247,6 +247,7 @@ bool WidgetContext::OnStop() // response app.cancel() IAM_LOGI("%{public}s start", description_.c_str()); End(ResultCode::CANCELED); + WidgetClient::Instance().ClearSchedule(contextId_); return true; } -- Gitee