diff --git a/uitest/server/system_ui_controller.cpp b/uitest/server/system_ui_controller.cpp index 78a0ccf..d460bc2 100644 --- a/uitest/server/system_ui_controller.cpp +++ b/uitest/server/system_ui_controller.cpp @@ -263,11 +263,6 @@ namespace OHOS::uitest { return; } sort(windows.begin(), windows.end(), [](auto &w1, auto &w2) -> bool { - if (w1.IsActive()) { - return true; - } else if (w2.IsActive()) { - return false; - } return w1.GetWindowLayer() > w2.GetWindowLayer(); }); AccessibilityElementInfo elementInfo;