MCPcopy Create free account
hub / github.com/M66B/FairEmail / delete

Method delete

app/src/main/java/eu/faircode/email/EntityContact.java:244–255  ·  view source on GitHub ↗
(Context context, long account, Address[] addresses, int type)

Source from the content-addressed store, hash-verified

242 }
243
244 public static void delete(Context context, long account, Address[] addresses, int type) {
245 if (addresses == null)
246 return;
247
248 DB db = DB.getInstance(context);
249 for (Address address : addresses) {
250 String email = ((InternetAddress) address).getAddress();
251 if (TextUtils.isEmpty(email))
252 continue;
253 db.contact().deleteContact(account, type, email);
254 }
255 }
256
257 public JSONObject toJSON() throws JSONException {
258 JSONObject json = new JSONObject();

Callers 14

queueMethod · 0.95
surroundMethod · 0.45
getTextMethod · 0.45
afterTextChangedMethod · 0.45
onExecutedMethod · 0.45
onChangedMethod · 0.45
onExecuteMethod · 0.45
onExecutedMethod · 0.45
onMoveMethod · 0.45
doCommandMethod · 0.45
runMethod · 0.45
secureDeleteMethod · 0.45

Calls 5

getInstanceMethod · 0.95
contactMethod · 0.95
deleteContactMethod · 0.80
getAddressMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected