fix mail bug
parent
264540e796
commit
2b78ebf9ea
|
@ -71,8 +71,8 @@ public class MailLogic {
|
|||
if (size > Global.MAIL_BOX_CAPACITY){
|
||||
Collections.sort(cMailList, Comparator.comparingInt(Mail::getSendTime));
|
||||
for(int i = 0; i < (size - Global.MAIL_BOX_CAPACITY); i++){
|
||||
cMailList.remove(0);
|
||||
mailManager.removeMail(cMailList.get(0).getId());
|
||||
cMailList.remove(0);
|
||||
}
|
||||
}
|
||||
getAllMailProtoList(cMailList,mailList);
|
||||
|
|
Loading…
Reference in New Issue