正在查看: 微商客 v2.1.2 应用的 GroupCycleSend.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 微商客 v2.1.2 应用的 GroupCycleSend.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.jianzhen.wsk.ui.groupsend;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import android.os.Handler;
import android.os.Looper;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.activity.result.ActivityResult;
import androidx.activity.result.ActivityResultCallback;
import androidx.activity.result.ActivityResultLauncher;
import androidx.activity.result.contract.ActivityResultContracts;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.auxiliary.library.core.NodeExecutor;
import com.auxiliary.library.node.SelectNode;
import com.auxiliary.library.service.AuxiliaryService;
import com.auxiliary.library.widget.ExecutorWindow;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hjq.permissions.OnPermissionCallback;
import com.hjq.permissions.XXPermissions;
import com.jianzhen.wsk.BaseActivity;
import com.jianzhen.wsk.R;
import com.jianzhen.wsk.bean.GroupListData;
import com.jianzhen.wsk.bean.GroupSendData;
import com.jianzhen.wsk.bean.ImgListData;
import com.jianzhen.wsk.bean.TagAndGroupBean;
import com.jianzhen.wsk.dialog.GetAllGroupDataDialog;
import com.jianzhen.wsk.dialog.PermissionTipDialog;
import com.jianzhen.wsk.net.api.Constant;
import com.jianzhen.wsk.ui.SelectSendTimeActivity;
import com.jianzhen.wsk.utils.DataSaveUtils;
import com.jianzhen.wsk.utils.GlideEngine;
import com.jianzhen.wsk.utils.ImageSaveUtil;
import com.jianzhen.wsk.utils.ScriptLoadUtil;
import com.jianzhen.wsk.utils.SharedPreferencesUtil;
import com.jianzhen.wsk.utils.Utils;
import com.kongzue.dialogx.dialogs.PopNotification;
import com.luck.picture.lib.basic.PictureSelector;
import com.luck.picture.lib.config.SelectMimeType;
import com.luck.picture.lib.entity.LocalMedia;
import com.luck.picture.lib.interfaces.OnResultCallbackListener;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.stream.Collectors;
public class GroupCycleSend extends BaseActivity implements View.OnClickListener, NodeExecutor.StatusCallback {
public ImageView firstSendTextIv;
public GroupSendData groupPartSendData;
public GroupSendData groupSendData;
private ImgAdapter imgAdapter;
public ActivityResultLauncher<Intent> launcher;
private ExecutorWindow mExecutorWindow;
public PopNotification mPopNotification;
private EditText numberOfCyclesEt;
GroupSendData partSendData;
private GroupSendData savaSendData;
public TextView sendObjectTv;
public EditText sendTextEd;
public String sendTime;
private EditText timeOfCyclesEt;
public TextView time_select_tv;
private final String funcId = "10065";
public List<String> imgList = new ArrayList();
public int isSelectObject = 0;
public boolean tsModel = false;
private final Handler handlerPost = new Handler(Looper.getMainLooper());
private String myWxName = "";
public final List<ImgListData> imgListDataList = new ArrayList();
public final List<ImgListData> saveHistoryImgData = new ArrayList();
@Override
protected int getLayoutId() {
return R.layout.activity_group_cyvle_send;
}
@Override
protected boolean isSetBaseTitle() {
return true;
}
public void onFail(NodeExecutor nodeExecutor, Throwable th) {
}
public void onPause(NodeExecutor nodeExecutor) {
}
public void onResume(NodeExecutor nodeExecutor) {
}
public void onStart(NodeExecutor nodeExecutor) {
}
@Override
protected void initTitle() {
setBaseTitle(this, getString(R.string.group_cycle_title));
}
@Override
protected void initPageView() {
this.isSelectObject = SharedPreferencesUtil.getInt(this, "isSelectObjectWithCycle", 200);
this.time_select_tv = (TextView) findViewById(R.id.time_select_tv);
this.sendObjectTv = (TextView) findViewById(R.id.select_object_text);
this.firstSendTextIv = (ImageView) findViewById(R.id.first_send_text_iv);
this.sendTextEd = (EditText) findViewById(R.id.send_text_ed);
this.numberOfCyclesEt = (EditText) findViewById(R.id.number_of_cycles_et);
this.timeOfCyclesEt = (EditText) findViewById(R.id.time_of_cycles_et);
String savaSendText = DataSaveUtils.getSavaSendText(this, "10065");
if (savaSendText != null && !savaSendText.isEmpty()) {
this.sendTextEd.setText(savaSendText);
}
findViewById(R.id.clear_text).setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
GroupCycleSend.this.lambda$initPageView$0(view);
}
});
setImgNew();
setSendTime();
setSendObject();
initActivityResult();
findViewById(R.id.time_select_lay).setOnClickListener(this);
findViewById(R.id.select_object_lay).setOnClickListener(this);
this.firstSendTextIv.setOnClickListener(this);
this.tsModel = SharedPreferencesUtil.getBoolean(this, "TS_DEVICE_MODEL", false);
findViewById(R.id.send_ok).setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
GroupCycleSend.this.lambda$initPageView$1(view);
}
});
}
public void lambda$initPageView$0(View view) {
this.sendTextEd.setText("");
}
public void lambda$initPageView$1(View view) {
int i;
GroupSendData groupSendData;
if (this.sendTextEd.getText().toString().isEmpty() && !isSendImg()) {
showCenterToast("请输入发送的内容,或选择图片!");
return;
}
if (this.sendObjectTv.getText().toString().equals("请选择") || (i = this.isSelectObject) == 0) {
showCenterToast("请选择群发对象!");
return;
}
if (i == 200 || i == 201) {
GroupSendData groupSendData2 = this.groupPartSendData;
if (groupSendData2 == null || groupSendData2.getGroup_list() == null || this.groupPartSendData.getGroup_list().isEmpty()) {
showCenterToast("请先选择群!");
return;
}
} else if (i == 202 && ((groupSendData = this.groupSendData) == null || groupSendData.getGroup_list() == null || this.groupSendData.getGroup_list().isEmpty())) {
showCenterToast("请先选择群!");
return;
}
if (this.isSelectObject == 200) {
List<TagAndGroupBean> partGroupListData = DataSaveUtils.getPartGroupListData(this);
if (partGroupListData == null) {
new GetAllGroupDataDialog(this).show();
return;
} else if (partGroupListData.size() <= 0) {
new GetAllGroupDataDialog(this).show();
return;
}
}
getFuncLimit("10065");
}
private int getNumberOfCycle() {
String trim = this.numberOfCyclesEt.getText().toString().trim();
if (trim.isEmpty()) {
return 2;
}
return Integer.parseInt(trim);
}
private Long getTimeOfCycle() {
String trim = this.timeOfCyclesEt.getText().toString().trim();
return Long.valueOf(!trim.isEmpty() ? Long.parseLong(trim) : 1L);
}
@Override
public void lambda$setNotYearVipTip$7() {
super.lambda$setNotYearVipTip$7();
if (isSendImg()) {
saveImg();
}
this.handlerPost.post(new Runnable() {
@Override
public final void run() {
GroupCycleSend.this.lambda$SendWxStart$2();
}
});
}
public void lambda$SendWxStart$2() {
int i = this.isSelectObject;
if (i == 202) {
sendSaveGroup();
} else if (i == 200 || i == 201) {
sendPartGroup();
}
}
private void sendSaveGroup() {
String trim = this.sendTextEd.getText().toString().trim();
GroupSendData groupSendData = this.groupSendData;
if (groupSendData == null || groupSendData.getGroup_list() == null || this.groupSendData.getGroup_list().size() <= 0) {
showCenterToast("未选择群!");
return;
}
Utils.openWx(this);
GroupSendData groupSendData2 = new GroupSendData(this.groupSendData.getGroup_list());
this.savaSendData = groupSendData2;
for (GroupListData groupListData : groupSendData2.getGroup_list()) {
groupListData.setSend_text(trim);
groupListData.setSend_img_list(this.imgListDataList);
groupListData.setHavaSendImg(isSendImg());
groupListData.setHavaSendText(!trim.isEmpty());
groupListData.setSend_time(this.sendTime);
}
try {
this.mExecutorWindow = ScriptLoadUtil.loadWx(AuxiliaryService.getAccessibility(), "10065", "search_send_to_save_group");
this.savaSendData.setFirstSendText(this.firstSendTextIv.isSelected());
this.mExecutorWindow.setArgs(this.savaSendData);
this.mExecutorWindow.setRegular(getTimeOfCycle(), Integer.valueOf(getNumberOfCycle()));
this.mExecutorWindow.showFloatWindow();
this.mExecutorWindow.setProgress3("正在发送第1轮,共" + getNumberOfCycle() + "轮");
this.mExecutorWindow.addStatusCallback(this);
this.mExecutorWindow.setISelect(new NodeExecutor.ISelectMap() {
public final void onNodeSelect(SelectNode selectNode, List list, Object obj, NodeExecutor nodeExecutor) {
GroupCycleSend.lambda$sendSaveGroup$5(selectNode, list, obj, nodeExecutor);
}
});
} catch (Exception unused) {
showCenterToast("请先启动辅助服务!");
}
}
static void lambda$sendSaveGroup$5(SelectNode selectNode, List list, Object obj, NodeExecutor nodeExecutor) {
}
static boolean lambda$sendSaveGroup$3(NodeExecutor.NodeParam nodeParam) {
return nodeParam.text != null;
}
private void sendPartGroup() {
String trim = this.sendTextEd.getText().toString().trim();
GroupSendData groupSendData = this.groupPartSendData;
if (groupSendData == null || groupSendData.getGroup_list() == null || this.groupPartSendData.getGroup_list().size() <= 0) {
showCenterToast("未选择群!");
return;
}
Utils.openWx(this);
GroupSendData groupSendData2 = new GroupSendData(this.groupPartSendData.getGroup_list());
this.partSendData = groupSendData2;
for (GroupListData groupListData : groupSendData2.getGroup_list()) {
groupListData.setSend_text(trim);
groupListData.setSend_img_list(this.imgListDataList);
groupListData.setHavaSendImg(isSendImg());
groupListData.setHavaSendText(!trim.isEmpty());
groupListData.setSend_time(this.sendTime);
}
for (int i = 0; i < this.partSendData.getGroup_list().size(); i++) {
int lastIndexOf = this.partSendData.getGroup_list().get(i).getSend_group().lastIndexOf(8230);
if (lastIndexOf != -1) {
this.partSendData.getGroup_list().get(i).setSend_group(this.partSendData.getGroup_list().get(i).getSend_group().substring(0, lastIndexOf));
}
}
try {
this.mExecutorWindow = ScriptLoadUtil.loadWx(AuxiliaryService.getAccessibility(), "10065", "search_send_part_group");
this.partSendData.setFirstSendText(this.firstSendTextIv.isSelected());
this.mExecutorWindow.setRegular(getTimeOfCycle(), Integer.valueOf(getNumberOfCycle()));
this.mExecutorWindow.showFloatWindow();
this.mExecutorWindow.setArgs(this.partSendData);
this.mExecutorWindow.addStatusCallback(this);
this.mExecutorWindow.setProgress3("正在发送第1轮,共" + getNumberOfCycle() + "轮");
this.mExecutorWindow.setISelect(new NodeExecutor.ISelectMap() {
public final void onNodeSelect(SelectNode selectNode, List list, Object obj, NodeExecutor nodeExecutor) {
GroupCycleSend.this.lambda$sendPartGroup$9(selectNode, list, obj, nodeExecutor);
}
});
} catch (Exception unused) {
showCenterToast("请先启动辅助服务!");
}
}
public void lambda$sendPartGroup$9(SelectNode selectNode, List list, Object obj, NodeExecutor nodeExecutor) {
List list2 = (List) list.stream().filter(new Predicate() {
@Override
public final boolean test(Object obj2) {
return GroupCycleSend.lambda$sendPartGroup$6((NodeExecutor.NodeParam) obj2);
}
}).map(new Function() {
@Override
public final Object apply(Object obj2) {
String str;
str = ((NodeExecutor.NodeParam) obj2).text;
return str;
}
}).filter(new Predicate() {
@Override
public final boolean test(Object obj2) {
return GroupCycleSend.lambda$sendPartGroup$8((String) obj2);
}
}).collect(Collectors.toList());
if (selectNode.getPageName().equals("我的页面获取我的昵称")) {
if (this.myWxName.isEmpty() && !list2.isEmpty()) {
this.myWxName = (String) list2.get(0);
}
this.partSendData.setWx_name(this.myWxName);
if (this.isVipOrFree || this.partSendData.getGroup_list().size() <= Constant.sendMessageNum) {
return;
}
GroupSendData groupSendData = this.partSendData;
groupSendData.setGroup_list(groupSendData.getGroup_list().subList(0, Constant.sendMessageNum));
return;
}
selectNode.getPageName().equals("部分群聊-获取输入群聊");
}
static boolean lambda$sendPartGroup$6(NodeExecutor.NodeParam nodeParam) {
return nodeParam.text != null;
}
static boolean lambda$sendPartGroup$8(String str) {
return ("微信团队".equals(str) || "文件传输助手".equals(str) || "未设置标签的朋友".equals(str)) ? false : true;
}
@Override
public void onClick(View view) {
Utils.hideKeyboard(this);
switch (view.getId()) {
case R.id.first_send_text_iv:
this.firstSendTextIv.setSelected(!r3.isSelected());
break;
case R.id.right_iv:
showCenterToast("xxxx");
break;
case R.id.select_object_lay:
Intent intent = new Intent((Context) this, (Class<?>) SelectSendObjectActivity.class);
intent.putExtra("isSelectObject", this.isSelectObject);
intent.putExtra("funcId", "10065");
this.launcher.launch(intent);
break;
case R.id.time_select_lay:
this.launcher.launch(new Intent((Context) this, (Class<?>) SelectSendTimeActivity.class));
break;
}
}
private void setImgNew() {
RecyclerView findViewById = findViewById(R.id.img_rv);
findViewById.setLayoutManager(new GridLayoutManager(this, 3));
ImgAdapter imgAdapter = new ImgAdapter(this.imgList);
this.imgAdapter = imgAdapter;
findViewById.setAdapter(imgAdapter);
if (Constant.isShowImg) {
findViewById.setVisibility(0);
}
if (this.imgList.isEmpty()) {
this.imgList.add("-1");
this.imgAdapter.notifyDataSetChanged();
}
this.imgAdapter.setOnItemChildClickListener(new BaseQuickAdapter.OnItemChildClickListener() {
public final void onItemChildClick(BaseQuickAdapter baseQuickAdapter, View view, int i) {
GroupCycleSend.this.lambda$setImgNew$11(baseQuickAdapter, view, i);
}
});
}
public void lambda$setImgNew$11(BaseQuickAdapter baseQuickAdapter, View view, int i) {
if (view.getId() == 2131363375) {
if (this.imgList.get(i).equals("-1")) {
if (Build.VERSION.SDK_INT >= 30) {
if (!Environment.isExternalStorageManager()) {
new PermissionTipDialog(this, "获取文件访问权限说明:\n用于拍摄、储存照片以及在相册中浏览查看照片", new PermissionTipDialog.Callback() {
@Override
public void onSure() {
Intent intent = new Intent("android.settings.MANAGE_APP_ALL_FILES_ACCESS_PERMISSION");
intent.setData(Uri.parse("package:" + GroupCycleSend.this.getPackageName()));
GroupCycleSend.this.startActivityForResult(intent, 2);
}
}).show();
return;
} else {
toSelectImg();
return;
}
}
toSelectImg();
return;
}
return;
}
if (view.getId() == 2131363367) {
this.imgList.remove(i);
if (this.imgList.size() > 0) {
this.imgList.removeIf(new Predicate() {
@Override
public final boolean test(Object obj) {
boolean equals;
equals = ((String) obj).equals("-1");
return equals;
}
});
}
if (this.imgList.size() < 3) {
this.imgList.add("-1");
}
this.imgAdapter.notifyDataSetChanged();
}
}
public void imgSelectNew() {
if (!this.imgList.isEmpty()) {
this.imgList.removeIf(new Predicate() {
@Override
public final boolean test(Object obj) {
boolean equals;
equals = ((String) obj).equals("-1");
return equals;
}
});
}
PictureSelector.create(this).openGallery(SelectMimeType.ofImage()).setMaxSelectNum(3 - this.imgList.size()).setMinSelectNum(1).setImageEngine(GlideEngine.createGlideEngine()).setSelectorUIStyle(Utils.selectorStyle()).forResult(new AnonymousClass2());
}
class AnonymousClass2 implements OnResultCallbackListener<LocalMedia> {
AnonymousClass2() {
}
public void onResult(ArrayList<LocalMedia> arrayList) {
Iterator<LocalMedia> it = arrayList.iterator();
while (it.hasNext()) {
LocalMedia next = it.next();
if (!GroupCycleSend.this.imgList.isEmpty()) {
GroupCycleSend.this.imgList.removeIf(new Predicate() {
@Override
public final boolean test(Object obj) {
boolean equals;
equals = ((String) obj).equals("-1");
return equals;
}
});
}
GroupCycleSend.this.imgList.add(next.getRealPath());
}
if (GroupCycleSend.this.imgList.size() < 3) {
GroupCycleSend.this.imgList.add("-1");
}
GroupCycleSend.this.imgAdapter.setNewData(GroupCycleSend.this.imgList);
}
public void onCancel() {
if (GroupCycleSend.this.imgList.size() < 3) {
GroupCycleSend.this.imgList.add("-1");
}
}
}
private void toSelectImg() {
if (!Utils.isImgPermission(this)) {
PopNotification build = PopNotification.build();
this.mPopNotification = build;
build.setTitle("相机和存储权限使用说明:").setMessage("用于拍摄、储存照片以及在相册中浏览查看照片").noAutoDismiss().show();
}
XXPermissions.with((Context) this).permission(Utils.imgPermission(this)).request(new OnPermissionCallback() {
@Override
public void onGranted(List<String> list, boolean z) {
GroupCycleSend.this.imgSelectNew();
if (GroupCycleSend.this.mPopNotification != null) {
GroupCycleSend.this.mPopNotification.dismiss();
}
}
@Override
public void onDenied(List<String> list, boolean z) {
if (GroupCycleSend.this.mPopNotification != null) {
GroupCycleSend.this.mPopNotification.dismiss();
}
}
});
}
public void saveImg() {
int i;
this.imgListDataList.clear();
this.saveHistoryImgData.clear();
Iterator<String> it = this.imgList.iterator();
while (true) {
i = 0;
if (!it.hasNext()) {
break;
}
String next = it.next();
if (!next.isEmpty()) {
this.saveHistoryImgData.add(new ImgListData(next));
ImageSaveUtil.saveAlbum((Context) this, next, Bitmap.CompressFormat.JPEG, 100, false);
}
}
ArrayList arrayList = new ArrayList(this.imgList);
arrayList.removeIf(new Predicate() {
@Override
public final boolean test(Object obj) {
boolean equals;
equals = ((String) obj).equals("-1");
return equals;
}
});
while (i < arrayList.size()) {
i++;
this.imgListDataList.add(new ImgListData("图片" + i));
}
}
public void onFinish(NodeExecutor nodeExecutor, boolean z) {
ExecutorWindow executorWindow = this.mExecutorWindow;
if (executorWindow != null && executorWindow.mExecutor != null && !this.mExecutorWindow.mExecutor.isDownTimerTask()) {
this.mExecutorWindow.setMessage("群发完成!");
}
addFuncLimitCount("10065");
}
private static class ImgAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
public ImgAdapter(List<String> list) {
super(R.layout.item_send_img_list, list);
}
public void convert(BaseViewHolder baseViewHolder, String str) {
ImageView imageView = (ImageView) baseViewHolder.getView(R.id.video_show);
ImageView imageView2 = (ImageView) baseViewHolder.getView(R.id.video_delete);
if (!str.equals("-1")) {
imageView2.setVisibility(0);
Glide.with(this.mContext).load(str).into(imageView);
} else {
imageView.setImageResource(R.mipmap.add_img);
imageView2.setVisibility(4);
}
baseViewHolder.addOnClickListener(new int[]{R.id.video_show});
baseViewHolder.addOnClickListener(new int[]{R.id.video_delete});
}
}
public boolean isSendImg() {
ArrayList arrayList = new ArrayList();
for (String str : this.imgList) {
if (!str.equals("-1")) {
arrayList.add(str);
}
}
return !arrayList.isEmpty();
}
public void setSendTime() {
int i = SharedPreferencesUtil.getInt(this, "groupSendTime", 2);
if (i == 1) {
this.time_select_tv.setText("1-4秒");
this.sendTime = "[2000,4000]";
return;
}
if (i == 2) {
this.time_select_tv.setText("2-6秒");
this.sendTime = "[2000,6000]";
return;
}
if (i == 3) {
this.time_select_tv.setText("3-8秒");
this.sendTime = "[3000,8000]";
return;
}
if (i == 4) {
this.time_select_tv.setText("4-10秒");
this.sendTime = "[4000,10000]";
return;
}
if (i == 5) {
this.time_select_tv.setText("5-12秒");
this.sendTime = "[5000,12000]";
} else if (i == 6) {
String string = SharedPreferencesUtil.getString(this, "groupSendCustomStartTime", "5");
String string2 = SharedPreferencesUtil.getString(this, "groupSendCustomEndTime", "10");
this.time_select_tv.setText(string + "-" + string2 + "秒");
this.sendTime = "[" + (string + "000") + "," + (string2 + "000") + "]";
}
}
public void initActivityResult() {
this.launcher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), new ActivityResultCallback() {
public final void onActivityResult(Object obj) {
GroupCycleSend.this.lambda$initActivityResult$14((ActivityResult) obj);
}
});
}
public void lambda$initActivityResult$14(ActivityResult activityResult) {
if (activityResult.getResultCode() == 2000) {
setSendTime();
return;
}
if (activityResult.getResultCode() != 1000 || activityResult.getData() == null) {
return;
}
int intExtra = activityResult.getData().getIntExtra("isSelectObject", 100);
this.isSelectObject = intExtra;
SharedPreferencesUtil.putInt(this, "isSelectObjectWithCycle", intExtra);
setSendObject();
}
public void setSendObject() {
int i = this.isSelectObject;
if (i == 200) {
this.sendObjectTv.setText("全部群聊");
setSendAllGroupData();
} else if (i == 201 || i == 202) {
this.sendObjectTv.setText(i == 201 ? "加入的微信群聊" : "保存到微信通讯录的群聊");
setSendPartAndSaveGroupData();
}
}
public void setSendAllGroupData() {
List<TagAndGroupBean> partGroupListData = DataSaveUtils.getPartGroupListData(this);
if (partGroupListData == null || partGroupListData.size() <= 0) {
return;
}
ArrayList arrayList = new ArrayList();
Iterator<TagAndGroupBean> it = partGroupListData.iterator();
while (it.hasNext()) {
arrayList.add(new GroupListData(it.next().getTagName(), "", this.sendTime));
}
this.groupPartSendData = new GroupSendData("", arrayList);
}
private void setSendPartAndSaveGroupData() {
List<TagAndGroupBean> selectPartGroupListData;
int i = this.isSelectObject;
if (i == 202) {
List<TagAndGroupBean> selectSaveGroupListData = DataSaveUtils.getSelectSaveGroupListData(this);
if (selectSaveGroupListData == null || selectSaveGroupListData.size() <= 0) {
return;
}
ArrayList arrayList = new ArrayList();
Iterator<TagAndGroupBean> it = selectSaveGroupListData.iterator();
while (it.hasNext()) {
arrayList.add(new GroupListData(it.next().getTagName(), "", this.sendTime));
}
this.groupSendData = new GroupSendData("", arrayList);
return;
}
if (i != 201 || (selectPartGroupListData = DataSaveUtils.getSelectPartGroupListData(this)) == null || selectPartGroupListData.size() <= 0) {
return;
}
ArrayList arrayList2 = new ArrayList();
Iterator<TagAndGroupBean> it2 = selectPartGroupListData.iterator();
while (it2.hasNext()) {
arrayList2.add(new GroupListData(it2.next().getTagName(), "", this.sendTime));
}
this.groupPartSendData = new GroupSendData("", arrayList2);
}
@Override
protected void onDestroy() {
super.onDestroy();
if (!this.sendTextEd.getText().toString().isEmpty()) {
DataSaveUtils.setSavaSendText(this, this.sendTextEd.getText().toString(), "10065");
}
ExecutorWindow executorWindow = this.mExecutorWindow;
if (executorWindow != null) {
executorWindow.hideFloatWindow();
this.mExecutorWindow.stop();
}
}
protected void onResume() {
super.onResume();
ExecutorWindow executorWindow = this.mExecutorWindow;
if (executorWindow != null) {
executorWindow.hideFloatWindow();
this.mExecutorWindow.stop();
}
}
}