|
|
@@ -15,7 +15,6 @@ import android.view.accessibility.AccessibilityNodeInfo;
|
|
|
|
|
|
|
|
|
import com.wiipu.marketingrobot.AutoReplyService;
|
|
|
-import com.wiipu.marketingrobot.LogUtil;
|
|
|
import com.wiipu.marketingrobot.contract.moneyContract;
|
|
|
import com.wiipu.marketingrobot.presenter.moneyPresenter;
|
|
|
import com.wiipu.marketingrobot.response.AddGroupReplyResponse;
|
|
|
@@ -107,7 +106,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
|
|
|
AutoReplyService.isInAction = true;
|
|
|
if (pref.getString(savedRobotName, null) == null || pref.getString(savedRobotNum, null) == null) {
|
|
|
- LogUtil.d(TAG, "addAutoReply: get the robot info");
|
|
|
+ LogUtils.d(TAG + " addAutoReply: get the robot info");
|
|
|
getTheRobotInfo(event);
|
|
|
return;
|
|
|
}
|
|
|
@@ -126,7 +125,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
|
|
|
List<AccessibilityNodeInfo> nodesList = root.findAccessibilityNodeInfosByText("邀请你加入群聊");
|
|
|
if (nodesList.size() == 0) {
|
|
|
- LogUtil.e(TAG, "addGroup: nodes list size is 0");
|
|
|
+ LogUtils.e(TAG + " addGroup: nodes list size is 0");
|
|
|
} else {
|
|
|
AccessibilityNodeInfo node = nodesList.get(nodesList.size() - 1);
|
|
|
if (node != null) {
|
|
|
@@ -135,7 +134,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
if (fill("群聊人员数不足,请重新拉群")) {
|
|
|
send();
|
|
|
} else {
|
|
|
- LogUtil.e(TAG, "addGroup: cant find edittext");
|
|
|
+ LogUtils.e(TAG + " addGroup: cant find edittext");
|
|
|
}
|
|
|
isGroupNumLegal = true;
|
|
|
hasGetMMid = false;
|
|
|
@@ -161,7 +160,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- LogUtil.e(TAG, "addGroup: 2");
|
|
|
+ LogUtils.e(TAG + " addGroup: 2");
|
|
|
if (finishAllJob) {
|
|
|
mService.performGlobalAction(GLOBAL_ACTION_BACK);//两个连着的global操作是不行的,只能分开页面判断
|
|
|
finishAllJob = false;
|
|
|
@@ -171,10 +170,10 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- LogUtil.e(TAG, "addGroup: 3");
|
|
|
+ LogUtils.e(TAG + " addGroup: 3");
|
|
|
// SystemClock.sleep(3000);
|
|
|
if (isGroupChatUi()) {
|
|
|
- LogUtil.e(TAG, "addGroup: is group ui");
|
|
|
+ LogUtils.e(TAG + " addGroup: is group ui");
|
|
|
openMemberList();
|
|
|
}
|
|
|
|
|
|
@@ -197,13 +196,13 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
findallchild(root);
|
|
|
isNumLegal(root);
|
|
|
if (!isGroupNumLegal) {
|
|
|
- LogUtil.e(TAG, "addGroup: 人数不合法");
|
|
|
+ LogUtils.e(TAG + " addGroup: 人数不合法");
|
|
|
mService.performGlobalAction(GLOBAL_ACTION_BACK);
|
|
|
return;
|
|
|
} else {
|
|
|
- LogUtil.e(TAG, "addGroup: num is legal");
|
|
|
+ LogUtils.e(TAG + " addGroup: num is legal");
|
|
|
}
|
|
|
- LogUtil.e(TAG, "addGroup: 1");
|
|
|
+ LogUtils.e(TAG + " addGroup: 1");
|
|
|
|
|
|
if (needToReplyInvite) {//第一次检查符合人数后,回消息页面进行回复
|
|
|
mMoneyPresenter.addGroupReply(mmNum, pref.getString(savedRobotNum, null),
|
|
|
@@ -214,16 +213,16 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- LogUtil.d(TAG, "addGroup: 2");
|
|
|
+ LogUtils.d(TAG + " addGroup: 2");
|
|
|
|
|
|
findchild(root);
|
|
|
AccessibilityNodeInfo node = findChild;
|
|
|
if (node == null) {
|
|
|
- LogUtil.d(TAG, "addGroup: node null");
|
|
|
+ LogUtils.d(TAG + " addGroup: node null");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- LogUtil.e(TAG, "addGroup: click 加入");
|
|
|
+ LogUtils.e(TAG + " addGroup: click 加入");
|
|
|
|
|
|
AccessibilityHelper.performClick(node);
|
|
|
|
|
|
@@ -253,10 +252,10 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- LogUtil.e(TAG, "addGroup: 0");
|
|
|
+ LogUtils.e(TAG + " addGroup: 0");
|
|
|
//用于修正在点击添加到联系人后,会先调用群友信息界面再调用验证界面的情况
|
|
|
if (isFriendSend) {
|
|
|
- LogUtil.d(TAG,"handleChatFunction: friend send");
|
|
|
+ LogUtils.d(TAG + " handleChatFunction: friend send");
|
|
|
addGroupChatFriendFlag = false;
|
|
|
isFriendSend = false;
|
|
|
mService.performGlobalAction(GLOBAL_ACTION_BACK);
|
|
|
@@ -265,10 +264,10 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- LogUtil.e(TAG, "addGroup: 1");
|
|
|
+ LogUtils.e(TAG + " addGroup: 1");
|
|
|
if (!isGroupChatFriend()) {
|
|
|
addGroupFriend();
|
|
|
- LogUtil.e(TAG, "addGroup: 添加好友,结果未知");
|
|
|
+ LogUtils.e(TAG + " addGroup: 添加好友,结果未知");
|
|
|
// mService.performGlobalAction(GLOBAL_ACTION_BACK);
|
|
|
AutoReplyService.isInSeeRoomInfoUICanNotGoBack = false;
|
|
|
|
|
|
@@ -288,7 +287,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
|
|
|
return;
|
|
|
}*/
|
|
|
- LogUtil.d(TAG, "ContactInfoUI global back");
|
|
|
+ LogUtils.d(TAG + " ContactInfoUI global back");
|
|
|
|
|
|
mService.performGlobalAction(GLOBAL_ACTION_BACK);
|
|
|
}
|
|
|
@@ -296,7 +295,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
|
|
|
if (event.getClassName().equals("com.tencent.mm.plugin.profile.ui.SayHiWithSnsPermissionUI")) {//点击“添加到通讯录”后的验证页面
|
|
|
addGroupFriendPermission();
|
|
|
- LogUtil.e(TAG, "addGroup: back");
|
|
|
+ LogUtils.e(TAG + " addGroup: back");
|
|
|
AutoReplyService.isInSeeRoomInfoUICanNotGoBack = false;
|
|
|
// AccessibilityNodeInfo nodeInfo = AccessibilityHelper.findNodeInfosById(mService.getRootInActiveWindow(), "com.tencent.mm:id/k4");
|
|
|
// AccessibilityHelper.performClick(nodeInfo);
|
|
|
@@ -308,12 +307,12 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
AccessibilityNodeInfo root = mService.getRootInActiveWindow();
|
|
|
AccessibilityNodeInfo ci7List = AccessibilityHelper.findNodeInfosById(root, chatRoomNewCi7List);
|
|
|
if (ci7List == null) {
|
|
|
- LogUtil.e(TAG, "addFriend: ci7 is null");
|
|
|
+ LogUtils.e(TAG + " addFriend: ci7 is null");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (!hasGetMMid) {
|
|
|
- LogUtil.d(TAG, "openMoney :not get mm id");
|
|
|
+ LogUtils.d(TAG + " openMoney :not get mm id");
|
|
|
AccessibilityHelper.performClick(ci7List.getChild(0));
|
|
|
|
|
|
} else {
|
|
|
@@ -350,7 +349,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
AccessibilityNodeInfo root = mService.getRootInActiveWindow();
|
|
|
List<AccessibilityNodeInfo> listNodes = root.findAccessibilityNodeInfosByText("邀请你加入群聊");
|
|
|
if (listNodes.size() == 0) {
|
|
|
- LogUtil.e(TAG, "reInTheGroupView: 找不到加入群聊");
|
|
|
+ LogUtils.e(TAG + " reInTheGroupView: 找不到加入群聊");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -375,7 +374,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
}
|
|
|
|
|
|
if (target != null) {
|
|
|
- LogUtil.d(TAG, "addGrouFunction openChatMemberList() target!=null");
|
|
|
+ LogUtils.d(TAG + " addGrouFunction openChatMemberList() target!=null");
|
|
|
SystemClock.sleep(2000);
|
|
|
AccessibilityHelper.performClick(target);
|
|
|
} else {
|
|
|
@@ -421,7 +420,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
AccessibilityNodeInfo root = mService.getRootInActiveWindow();
|
|
|
AccessibilityNodeInfo titleNode = AccessibilityHelper.findNodeInfosById(root, chatNameInLeftUp);
|
|
|
if (titleNode == null) {
|
|
|
- LogUtil.e(TAG, "getTheGroupName: title is null ");
|
|
|
+ LogUtils.e(TAG + " getTheGroupName: title is null ");
|
|
|
return null;
|
|
|
}
|
|
|
String title = titleNode.getText().toString();
|
|
|
@@ -445,7 +444,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
AccessibilityNodeInfo target = AccessibilityHelper.findNodeInfosById(root, addFriendSendBtn);//右上角“发送”按钮ID
|
|
|
if (target != null) {
|
|
|
AccessibilityHelper.performClick(target);
|
|
|
- LogUtil.d("handleChatFunction", "addGroupFriendPermission: 点击发送");
|
|
|
+ LogUtils.d("handleChatFunction : addGroupFriendPermission: 点击发送");
|
|
|
AutoReplyService.isSendingPermissionRequest = true;
|
|
|
}
|
|
|
|
|
|
@@ -461,7 +460,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
AccessibilityNodeInfo root = mService.getRootInActiveWindow();
|
|
|
AccessibilityNodeInfo target = null;
|
|
|
if (root == null) {
|
|
|
- LogUtil.d(TAG, "isGroupChatFriend,root==null,return true");
|
|
|
+ LogUtils.d(TAG + " isGroupChatFriend,root==null,return true");
|
|
|
return true;
|
|
|
}
|
|
|
target = AccessibilityHelper.findNodeInfosByText(root, "添加到通讯录");//这里必须以名字查询
|
|
|
@@ -478,7 +477,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
*/
|
|
|
|
|
|
private void addGroupFriend() {
|
|
|
- LogUtil.d("handleChatFunction", "addGroupFriend: add group friend");
|
|
|
+ LogUtils.d("handleChatFunction : addGroupFriend: add group friend");
|
|
|
SystemClock.sleep(2000);
|
|
|
AccessibilityNodeInfo target = AccessibilityHelper.findNodeInfosByText(mService.getRootInActiveWindow(), "添加到通讯录");
|
|
|
AccessibilityHelper.performClick(target);
|
|
|
@@ -522,7 +521,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
*/
|
|
|
private void addBigGroupFriends() {
|
|
|
if (addFriendError) {
|
|
|
- LogUtil.d(TAG, "addFriendError");
|
|
|
+ LogUtils.d(TAG + " addFriendError");
|
|
|
mService.performGlobalAction(GLOBAL_ACTION_BACK);
|
|
|
addcount = 0;
|
|
|
addFriendError = false;
|
|
|
@@ -531,13 +530,13 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
AccessibilityNodeInfo root = mService.getRootInActiveWindow();
|
|
|
AccessibilityNodeInfo gridView = AccessibilityHelper.findNodeInfosById(root, bigGroupGridView);//全部成员gridview
|
|
|
if (gridView == null) {
|
|
|
- LogUtil.d(TAG, "addBigGroupFriends: grid view null ");
|
|
|
+ LogUtils.d(TAG + " addBigGroupFriends: grid view null ");
|
|
|
findallchild(root);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (isFirstReadGridview) {
|
|
|
- LogUtil.d(TAG, "isFirstReadGridView");
|
|
|
+ LogUtils.d(TAG + " isFirstReadGridView");
|
|
|
gridView.performAction(AccessibilityNodeInfo.ACTION_SCROLL_BACKWARD);
|
|
|
SystemClock.sleep(500);
|
|
|
isFirstReadGridview = false;
|
|
|
@@ -560,17 +559,17 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
}
|
|
|
addcount++;
|
|
|
if (addcount > AutoReplyService.enableFriendsCounts) {
|
|
|
- LogUtil.d(TAG, "addCount is over enableFriendsCounts.enable friend count is:" + AutoReplyService.enableFriendsCounts);
|
|
|
+ LogUtils.d(TAG + " addCount is over enableFriendsCounts.enable friend count is:" + AutoReplyService.enableFriendsCounts);
|
|
|
mService.performGlobalAction(GLOBAL_ACTION_BACK);//大于预定人员数直接后退
|
|
|
addcount = 0;
|
|
|
return;
|
|
|
}
|
|
|
// LogUtil.e(TAG, "addBigGroupFriends: index is" + bigchatRoomMemberIndex + " " + bigchatRoomMemberName.size() + " " + getroomSize());
|
|
|
- LogUtil.e(TAG, "addBigGroupFriends: index is" + bigchatRoomMemberIndex + " " + bigchatRoomMemberName.size());
|
|
|
+ LogUtils.e(TAG + " addBigGroupFriends: index is" + bigchatRoomMemberIndex + " " + bigchatRoomMemberName.size());
|
|
|
|
|
|
if (bigchatRoomMemberName.size() == getroomSize()) {
|
|
|
nullNameCount = 0;
|
|
|
- LogUtil.e(TAG, "addBigGroupFriends: back to chat room");
|
|
|
+ LogUtils.e(TAG + " addBigGroupFriends: back to chat room");
|
|
|
mService.performGlobalAction(GLOBAL_ACTION_BACK);
|
|
|
return;
|
|
|
}
|
|
|
@@ -585,18 +584,18 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
|
|
|
if (name != null && name.getText() != null) {
|
|
|
bigchatRoomMemberName.add(name.getText().toString());
|
|
|
- LogUtil.d("clickkkkk", "addBigGroupFriends: click " + name.getText());
|
|
|
+ LogUtils.d("clickkkkk : addBigGroupFriends: click " + name.getText());
|
|
|
}
|
|
|
else{
|
|
|
nullNameCount++;
|
|
|
- LogUtil.d(TAG,"null name count is :"+nullNameCount);
|
|
|
+ LogUtils.d(TAG + " null name count is :"+nullNameCount);
|
|
|
}
|
|
|
AccessibilityHelper.performClick(child);
|
|
|
bigchatRoomMemberIndex++;
|
|
|
} else {
|
|
|
//找下一个该点的
|
|
|
gridView.performAction(AccessibilityNodeInfo.ACTION_SCROLL_FORWARD);
|
|
|
- LogUtil.d("clickkkkk", "addBigGroupFriends: scrollllllllllllllll");
|
|
|
+ LogUtils.d("clickkkkk : addBigGroupFriends: scrollllllllllllllll");
|
|
|
SystemClock.sleep(1000);
|
|
|
size = gridView.getChildCount();
|
|
|
for (int i = 0; i < size; i++) {
|
|
|
@@ -605,12 +604,11 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
|
|
|
|
|
|
if (name != null && name.getText() != null && !bigchatRoomMemberName.contains(name.getText().toString())) {
|
|
|
- LogUtil.d("addGroupFunction,index:" + i + " node name:", name.getText().toString());
|
|
|
+ LogUtils.d("addGroupFunction,index:" + i + " node name: " + name.getText().toString());
|
|
|
// forceClick(node);
|
|
|
AccessibilityHelper.performClick(node);
|
|
|
|
|
|
- LogUtil.d("" +
|
|
|
- "clickkkkk", "addBigGroupFriends: click " + i + " " + name.getText());
|
|
|
+ LogUtils.d( "clickkkkk : addBigGroupFriends: click " + i + " " + name.getText());
|
|
|
bigchatRoomMemberIndex = i + 1;
|
|
|
break;
|
|
|
}
|
|
|
@@ -636,12 +634,12 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
// findallchild(root);
|
|
|
AccessibilityNodeInfo title = AccessibilityHelper.findNodeInfosById(root, bigGroupGriViewMemCount);
|
|
|
if (title == null || title.getText() == null) {
|
|
|
- LogUtil.e(TAG, "getroomSize: null");
|
|
|
+ LogUtils.e(TAG + " getroomSize: null");
|
|
|
return 0;
|
|
|
}
|
|
|
String tit = title.getText().toString();
|
|
|
tit = tit.substring(tit.indexOf("(") + 1, tit.length() - 1);
|
|
|
- LogUtil.d(TAG, "getroomSize: title is" + tit);
|
|
|
+ LogUtils.d(TAG + " getroomSize: title is" + tit);
|
|
|
|
|
|
return Integer.parseInt(tit)-nullNameCount;
|
|
|
}
|
|
|
@@ -657,14 +655,14 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
List<AccessibilityNodeInfo> ci7List = root.findAccessibilityNodeInfosByViewId(chatRoomNewCi7List); //所有的用户头像名称,嵌套在该LinearLayout里
|
|
|
|
|
|
if (ci7List.size() == 0 || rootlist == null) {
|
|
|
- LogUtil.d(TAG, "searchChatRoomMembersInfo: nulll");
|
|
|
+ LogUtils.d(TAG + " searchChatRoomMembersInfo: nulll");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
//大群情况
|
|
|
if (AccessibilityHelper.findNodeInfosByText(rootlist, "消息免打扰") == null && !finishOpenList) {//大群情况初始页面看不到”消息免打扰“
|
|
|
rootlist.performAction(AccessibilityNodeInfo.ACTION_SCROLL_FORWARD);
|
|
|
- LogUtil.e(TAG, "searchChatRoomMembersInfo: scrolllled");
|
|
|
+ LogUtils.e(TAG + " searchChatRoomMembersInfo: scrolllled");
|
|
|
SystemClock.sleep(500);
|
|
|
if (AccessibilityHelper.findNodeInfosByText(root, "查看全部群成员") != null) {
|
|
|
AccessibilityNodeInfo nodeInfo = AccessibilityHelper.findNodeInfosByText(root, "查看全部群成员");
|
|
|
@@ -674,7 +672,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
- LogUtil.e(TAG, "searchChatRoomMembersInfo: find 免打扰");
|
|
|
+ LogUtils.e(TAG + " searchChatRoomMembersInfo: find 免打扰");
|
|
|
rootlist.performAction(AccessibilityNodeInfo.ACTION_SCROLL_FORWARD);//增加下滑保证一定能找到
|
|
|
SystemClock.sleep(1000);
|
|
|
|
|
|
@@ -684,7 +682,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
root = mService.getRootInActiveWindow();
|
|
|
AccessibilityNodeInfo node1 = AccessibilityHelper.findNodeInfosByText(root, "消息免打扰");
|
|
|
if (node1 != null) {
|
|
|
- LogUtil.d(TAG, "searchChatRoomMembersInfo: node1 not null");
|
|
|
+ LogUtils.d(TAG + " searchChatRoomMembersInfo: node1 not null");
|
|
|
root = node1.getParent().getParent();//“消息免打扰”嵌套在两个linearlayout里面,此时root和开关view同根
|
|
|
}
|
|
|
|
|
|
@@ -734,7 +732,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
private void getTheRobotInfo(AccessibilityEvent event) {
|
|
|
String senderName = AutoReplyService.msgSenderName;
|
|
|
if (senderName == null) {
|
|
|
- LogUtil.e(TAG, "getTheRobotInfo: wtf!!!!");
|
|
|
+ LogUtils.e(TAG + " getTheRobotInfo: wtf!!!!");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -746,7 +744,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
|
|
|
AccessibilityNodeInfo root = mService.getRootInActiveWindow();
|
|
|
List<AccessibilityNodeInfo> memList = root.findAccessibilityNodeInfosByViewId(chatListMem);
|
|
|
- LogUtil.d(TAG, "getTheRobotInfo: the memlist size is" + memList.size());
|
|
|
+ LogUtils.d(TAG + " getTheRobotInfo: the memlist size is" + memList.size());
|
|
|
for (int i = 0; i < memList.size(); i++) {
|
|
|
AccessibilityNodeInfo node = memList.get(i);
|
|
|
if (node != null && !node.getContentDescription().toString().contains(AutoReplyService.msgSenderName)) {
|
|
|
@@ -777,7 +775,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
AccessibilityHelper.performClick(addTocContract);
|
|
|
return;
|
|
|
} else {
|
|
|
- LogUtil.e(TAG, "getTheRobotInfo: name id is null");
|
|
|
+ LogUtils.e(TAG + " getTheRobotInfo: name id is null");
|
|
|
}
|
|
|
|
|
|
mService.performGlobalAction(GLOBAL_ACTION_BACK);
|
|
|
@@ -793,7 +791,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
AccessibilityNodeInfo target = null;
|
|
|
target = AccessibilityHelper.findNodeInfosById(nodeInfo, threePointInLanucher);
|
|
|
if (target != null) {
|
|
|
- LogUtil.e(TAG, "openMemberList: three pointertarget is not null");
|
|
|
+ LogUtils.e(TAG + " openMemberList: three pointertarget is not null");
|
|
|
//target.performAction(AccessibilityNodeInfo.ACTION_CLICK);
|
|
|
AccessibilityHelper.forceClick(target);
|
|
|
} else {
|
|
|
@@ -833,13 +831,13 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
if (child != null && child.getText() != null) {
|
|
|
String text = child.getText().toString();
|
|
|
if (text.matches("[0-9]+人")) {
|
|
|
- LogUtil.e(TAG, "isNumLegal: matches");
|
|
|
+ LogUtils.e(TAG + " isNumLegal: matches");
|
|
|
String people = text.substring(0, text.length() - 1);
|
|
|
int num = Integer.parseInt(people);
|
|
|
- LogUtil.e(TAG, "isNumLegal: num is" + num);
|
|
|
+ LogUtils.e(TAG + " isNumLegal: num is" + num);
|
|
|
if (num < 100) {
|
|
|
isGroupNumLegal = false;
|
|
|
- LogUtil.e(TAG, "isNumLegal: 不合法");
|
|
|
+ LogUtils.e(TAG + " isNumLegal: 不合法");
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
@@ -860,7 +858,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
AccessibilityNodeInfo child = root.getChild(i);
|
|
|
// LogUtil.d(TAG, "findallchild: " + child.getContentDescription() + " " + child.getClassName() + " " + child.getViewIdResourceName() + " " + child.getText());
|
|
|
if (child.getText() != null && child.getText().toString().equals("加入群聊")) {
|
|
|
- LogUtil.d(TAG, "findchild: find child!!!!!");
|
|
|
+ LogUtils.d(TAG + " findchild: find child!!!!!");
|
|
|
findChild = child;
|
|
|
return;
|
|
|
}
|
|
|
@@ -876,7 +874,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
private void forceClick(AccessibilityNodeInfo nodeInfo) {
|
|
|
Rect rect = new Rect();
|
|
|
nodeInfo.getBoundsInScreen(rect);
|
|
|
- LogUtil.d(TAG, "forceClick: " + rect.left + " " + rect.top + " " + rect.right + " " + rect.bottom);
|
|
|
+ LogUtils.d(TAG + " forceClick: " + rect.left + " " + rect.top + " " + rect.right + " " + rect.bottom);
|
|
|
int x = (rect.left + rect.right) / 2;
|
|
|
int y = (rect.top + rect.bottom) / 2;
|
|
|
String cmd = "input tap " + String.valueOf(x) + " " + String.valueOf(y);
|
|
|
@@ -918,7 +916,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
for (int i = 0; i < count; i++) {
|
|
|
AccessibilityNodeInfo nodeInfo = rootNode.getChild(i);
|
|
|
if (nodeInfo == null) {
|
|
|
- LogUtil.d("maptrix", "nodeinfo = null");
|
|
|
+ LogUtils.d("maptrix : nodeinfo = null");
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
@@ -926,7 +924,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
// android.util.LogUtil.e("maptrix", "ds=" + nodeInfo.getContentDescription());
|
|
|
|
|
|
if ("android.widget.EditText".equals(nodeInfo.getClassName())) {
|
|
|
- LogUtil.i("maptrix", "find edit text");
|
|
|
+ LogUtils.i("maptrix : find edit text");
|
|
|
|
|
|
Bundle arguments = new Bundle();
|
|
|
arguments.putInt(AccessibilityNodeInfo.ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT,
|
|
|
@@ -968,7 +966,7 @@ public class addGroupFunction implements moneyContract.View {
|
|
|
for (AccessibilityNodeInfo n : list) {
|
|
|
//n.performAction(AccessibilityNodeInfo.ACTION_CLICK);
|
|
|
AccessibilityHelper.performClick(n);
|
|
|
- LogUtil.d(TAG, "send: 1");
|
|
|
+ LogUtils.d(TAG + " send: 1");
|
|
|
}
|
|
|
|
|
|
} else {
|