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

Method onDelete

app/src/main/java/eu/faircode/email/ServiceUI.java:267–282  ·  view source on GitHub ↗
(long id)

Source from the content-addressed store, hash-verified

265 }
266
267 private void onDelete(long id) {
268 DB db = DB.getInstance(this);
269 try {
270 db.beginTransaction();
271
272 EntityMessage message = db.message().getMessage(id);
273 if (message == null)
274 return;
275
276 EntityOperation.queue(this, message, EntityOperation.DELETE);
277
278 db.setTransactionSuccessful();
279 } finally {
280 db.endTransaction();
281 }
282 }
283
284 private void onJunk(long id) throws JSONException {
285 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);

Callers 1

onHandleIntentMethod · 0.95

Calls 7

getInstanceMethod · 0.95
beginTransactionMethod · 0.95
messageMethod · 0.95
queueMethod · 0.95
endTransactionMethod · 0.95
getMessageMethod · 0.65

Tested by

no test coverage detected