fix 搜索匹配
This commit is contained in:
@@ -104,10 +104,10 @@ object WeworkRoomUtil {
|
|||||||
sleep(Constant.CHANGE_PAGE_INTERVAL)
|
sleep(Constant.CHANGE_PAGE_INTERVAL)
|
||||||
//消息页搜索结果列表
|
//消息页搜索结果列表
|
||||||
val selectListView = findOneByClazz(getRoot(), Views.ListView)
|
val selectListView = findOneByClazz(getRoot(), Views.ListView)
|
||||||
val searchResult = AccessibilityUtil.findOneByText(
|
val regex = "^$trimTitle(-.*)?(…)?(\\(.*?\\))?" + if (needTrim) "" else "$"
|
||||||
|
val searchResult = AccessibilityUtil.findOneByTextRegex(
|
||||||
selectListView,
|
selectListView,
|
||||||
trimTitle,
|
regex,
|
||||||
exact = !needTrim,
|
|
||||||
timeout = 2000,
|
timeout = 2000,
|
||||||
root = false
|
root = false
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user