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