POP3: clear junk contacts

pull/207/head
M66B 4 years ago
parent b29c1150a0
commit f1d3a10235

@ -246,6 +246,10 @@ public class FragmentDialogJunk extends FragmentDialogBase {
long fid = args.getLong("folder"); long fid = args.getLong("folder");
DB db = DB.getInstance(context); DB db = DB.getInstance(context);
int count = db.contact().deleteContact(aid, EntityContact.TYPE_JUNK);
EntityLog.log(context, "Deleted junk contacts=" + count);
EntityFolder folder = db.folder().getFolder(fid); EntityFolder folder = db.folder().getFolder(fid);
if (folder == null) if (folder == null)
return null; return null;
@ -268,9 +272,6 @@ public class FragmentDialogJunk extends FragmentDialogBase {
} }
} }
int count = db.contact().deleteContact(aid, EntityContact.TYPE_JUNK);
EntityLog.log(context, "Deleted junk contacts=" + count);
return null; return null;
} }

Loading…
Cancel
Save