update 邮件检索
This commit is contained in:
@@ -13,7 +13,8 @@ object Constant {
|
||||
private const val DEFAULT_HOST = "wss://worktool.asrtts.cn"
|
||||
|
||||
var myName = ""
|
||||
// var regTrimTitle = "(…$)|(-.*$)|(\\(.*?\\)$)".toRegex()
|
||||
// var regTrimTitle = "(…$)|(-.*$)|(\\(.*?\\)$)".toRegex()
|
||||
var regMail = "\\S+@\\S+\\.\\S+".toRegex()
|
||||
var regTrimTitle = "(…$)".toRegex()
|
||||
var key = "9876543210abcdef".toByteArray()
|
||||
var iv = "0123456789abcdef".toByteArray()
|
||||
|
||||
@@ -1987,12 +1987,12 @@ object WeworkOperationImpl {
|
||||
timeout = 2000,
|
||||
root = false
|
||||
)
|
||||
if (selectListView != null && matchSelect != null) {
|
||||
if (selectListView != null && (matchSelect != null || reverseRegexTitle.matches(Constant.regMail))) {
|
||||
var flag = false
|
||||
for (i in 0 until selectListView.childCount) {
|
||||
val item = selectListView.getChild(i)
|
||||
val searchResult = AccessibilityUtil.findOnceByTextRegex(item, regex)
|
||||
if (searchResult != null) {
|
||||
if ((matchSelect == null && item.className == Views.RelativeLayout)
|
||||
|| AccessibilityUtil.findOnceByTextRegex(item, regex) != null) {
|
||||
item.refresh()
|
||||
val imageView =
|
||||
AccessibilityUtil.findOneByClazz(item, Views.ImageView, root = false)
|
||||
|
||||
Reference in New Issue
Block a user