修复arkts-static的entry意图绑定service且executeMode接受UIABILITY_BACKGROUND时未进行有效拦截问题

Co-Authored-By: Agent
Signed-off-by: renjh5496 <renjianhao@h-partners.com>
This commit is contained in:
renjh5496
2026-04-28 09:25:22 +08:00
parent 1014cb0561
commit 63d2d81ca6
@@ -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 ?