From e8dcf5222d20e925ee3f4868647a4cc139da67b1 Mon Sep 17 00:00:00 2001 From: l30059571 Date: Wed, 19 Mar 2025 10:27:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E4=B8=80=E9=94=AE=E9=94=81?= =?UTF-8?q?=E5=B1=8F=E7=B1=BB=E6=97=A0=E5=89=8D=E5=8F=B0=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=E5=BA=94=E7=94=A8=20Signed-off-by:=20l30059571=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/common/src/bundle_active_app_state_obsever.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/services/common/src/bundle_active_app_state_obsever.cpp b/services/common/src/bundle_active_app_state_obsever.cpp index 872a075..caba8de 100644 --- a/services/common/src/bundle_active_app_state_obsever.cpp +++ b/services/common/src/bundle_active_app_state_obsever.cpp @@ -53,15 +53,9 @@ void BundleActiveAppStateObserver::OnAbilityStateChanged(const AbilityStateData tmpHandlerObject.event_.timeStamp_ = timer->GetBootTimeMs(); switch (abilityStateData.abilityState) { case static_cast(AppExecFwk::AbilityState::ABILITY_STATE_FOREGROUND): - if (!abilityStateData.isFocused) { - return; - } tmpHandlerObject.event_.eventId_ = BundleActiveEvent::ABILITY_FOREGROUND; break; case static_cast(AppExecFwk::AbilityState::ABILITY_STATE_BACKGROUND): - if (abilityStateData.isFocused) { - return; - } tmpHandlerObject.event_.eventId_ = BundleActiveEvent::ABILITY_BACKGROUND; break; case static_cast(AppExecFwk::AbilityState::ABILITY_STATE_TERMINATED): -- Gitee