Signed-off-by: xuchenghua <xuchenghua09@huawei.com>
This commit is contained in:
xuchenghua
2022-01-25 12:57:16 +00:00
parent 5e3c873e3c
commit 7e322966cc
@@ -216,9 +216,6 @@ void AbilityRecord::ProcessForegroundAbility()
// background to activte state
HILOG_DEBUG("MoveToForground, %{public}s", element.c_str());
DelayedSingleton<AppScheduler>::GetInstance()->MoveToForground(token_);
} else if (IsAbilityState(AbilityState::FOREGROUND_NEW)) {
HILOG_DEBUG("already foreground_new, no need lifecycle. %{public}s", element.c_str());
return;
} else {
HILOG_DEBUG("Activate %{public}s", element.c_str());
ForegroundAbility();