diff --git a/frameworks/core/frame_aware_policy/src/intellisense_server.cpp b/frameworks/core/frame_aware_policy/src/intellisense_server.cpp index 190c6ebee44b1d17f047486c8eee53362c9802b8..11a79ffa172579946ba3ad00029e469b0cf03974 100644 --- a/frameworks/core/frame_aware_policy/src/intellisense_server.cpp +++ b/frameworks/core/frame_aware_policy/src/intellisense_server.cpp @@ -84,11 +84,9 @@ bool IntelliSenseServer::ReadXml() void IntelliSenseServer::NewForeground(int pid) { HITRACE_METER(HITRACE_TAG_ACE); - bool found = false; int newCreatedRtg = 0; for (auto iter = m_historyApp.begin(); iter != m_historyApp.end(); iter++) { if (iter->GetAppPid() == pid) { - found = true; RME_LOGI("[ReportMessage]pid %{public}d change to foreground.", pid); if (iter->GetAppState() != AppState::APP_FOREGROUND) { iter->SetUiTid(pid);