From a1ae8702efaa5624e1be7d15a266390507a09f64 Mon Sep 17 00:00:00 2001 From: gallonyin Date: Mon, 12 Jun 2023 18:44:30 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=E6=9F=A5=E6=89=BE?= =?UTF-8?q?=E6=8E=A7=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/yameida/worktool/service/WeworkOperationImpl.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/yameida/worktool/service/WeworkOperationImpl.kt b/app/src/main/java/org/yameida/worktool/service/WeworkOperationImpl.kt index d0f3d13..1abe132 100644 --- a/app/src/main/java/org/yameida/worktool/service/WeworkOperationImpl.kt +++ b/app/src/main/java/org/yameida/worktool/service/WeworkOperationImpl.kt @@ -2216,7 +2216,7 @@ object WeworkOperationImpl { private fun groupChangeRemark(groupRemark: String?): Boolean { if (groupRemark == null) return true if (WeworkRoomUtil.intoGroupManager()) { - val textView = AccessibilityUtil.findOneByText(getRoot(), "备注", exact = true) + val textView = AccessibilityUtil.scrollAndFindByText(WeworkController.weworkService, getRoot(), "备注", exact = true) if (textView != null) { AccessibilityUtil.performClick(textView) if (AccessibilityUtil.findTextInput(getRoot(), groupRemark)) { @@ -2244,7 +2244,7 @@ object WeworkOperationImpl { private fun groupTemplate(groupTemplate: String?): Boolean { if (groupTemplate == null) return true if (WeworkRoomUtil.intoGroupManager()) { - val textView = AccessibilityUtil.findOneByText(getRoot(), "使用模板快速配置群", exact = true) + val textView = AccessibilityUtil.scrollAndFindByText(WeworkController.weworkService, getRoot(), "使用模板快速配置群", exact = true) if (textView != null) { AccessibilityUtil.performClick(textView) val item = AccessibilityUtil.findOneByDesc(getRoot(), groupTemplate)