自动删除异常的发送方

This commit is contained in:
pppscn 2021-02-11 21:31:11 +08:00
parent 881fa8ad7d
commit d3c2404f7d

View File

@ -102,7 +102,12 @@ public class SenderActivity extends AppCompatActivity {
setBark(senderModel);
break;
default:
Toast.makeText(SenderActivity.this, "异常的发送方类型!删除", Toast.LENGTH_LONG).show();
Toast.makeText(SenderActivity.this, "异常的发送方类型,自动删除!", Toast.LENGTH_LONG).show();
if (senderModel != null) {
SenderUtil.delSender(senderModel.getId());
initSenders();
adapter.del(senderModels);
}
break;
}
@ -115,7 +120,6 @@ public class SenderActivity extends AppCompatActivity {
// 初始化数据
private void initSenders() {
senderModels = SenderUtil.getSender(null, null);
;
}
public void addSender(View view) {
@ -150,7 +154,6 @@ public class SenderActivity extends AppCompatActivity {
Log.d(TAG, "setDingDing show" + senderModels.size());
}
private void setDingDing(final SenderModel senderModel) {
DingDingSettingVo dingDingSettingVo = null;
//try phrase json setting