From 8bcf3bf4f0b7f76f66d1de1cd8f73c457e2d4ec4 Mon Sep 17 00:00:00 2001 From: zhouke Date: Tue, 23 Aug 2022 17:59:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E9=81=BF=E5=A3=81=E7=BA=B8=E6=8C=A1?= =?UTF-8?q?=E4=BD=8F=E6=A1=8C=E9=9D=A2=E6=8E=A7=E4=BB=B6=EF=BC=8C.Signed-o?= =?UTF-8?q?ff-by:=20.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhouke --- uitest/server/system_ui_controller.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uitest/server/system_ui_controller.cpp b/uitest/server/system_ui_controller.cpp index 54e95b7..0194429 100644 --- a/uitest/server/system_ui_controller.cpp +++ b/uitest/server/system_ui_controller.cpp @@ -274,6 +274,9 @@ namespace OHOS::uitest { for (auto &window : windows) { if (ability->GetRootByWindow(window, elementInfo)) { const auto app = elementInfo.GetBundleName(); + if (app == "com.ohos.wallpaper") { + continue; + } LOG_D("Get window at layer %{public}d, appId: %{public}s", window.GetWindowLayer(), app.c_str()); auto winInfo = Window(window.GetWindowId()); InflateWindowInfo(window, winInfo);