From 63d2d81ca686dcd453d13223cd9e33ce3edbdec5 Mon Sep 17 00:00:00 2001 From: renjh5496 Date: Tue, 28 Apr 2026 09:25:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Darkts-static=E7=9A=84entry?= =?UTF-8?q?=E6=84=8F=E5=9B=BE=E7=BB=91=E5=AE=9Aservice=E4=B8=94executeMode?= =?UTF-8?q?=E6=8E=A5=E5=8F=97UIABILITY=5FBACKGROUND=E6=97=B6=E6=9C=AA?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E6=9C=89=E6=95=88=E6=8B=A6=E6=88=AA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Agent Signed-off-by: renjh5496 --- .../insight_intent_executor/ets_insight_intent_entry.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frameworks/native/ability/native/insight_intent_executor/ets_insight_intent_entry.cpp b/frameworks/native/ability/native/insight_intent_executor/ets_insight_intent_entry.cpp index 0d3bedd2ff..7691df5d51 100644 --- a/frameworks/native/ability/native/insight_intent_executor/ets_insight_intent_entry.cpp +++ b/frameworks/native/ability/native/insight_intent_executor/ets_insight_intent_entry.cpp @@ -272,8 +272,11 @@ bool EtsInsightIntentEntry::PrepareExecuteEnvironment(ani_env *env, InsightInten return false; } - if (pageLoader == nullptr) { + if (mode == InsightIntentExecuteMode::UIABILITY_BACKGROUND || + mode == InsightIntentExecuteMode::SERVICE_EXTENSION_ABILITY) { return true; + } else if (pageLoader == nullptr) { + return false; } const char *propertyName = mode == InsightIntentExecuteMode::UIEXTENSION_ABILITY ?