From 009470cb8a1ccd600e2ca0ffb41af32572bb8f86 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 23 Oct 2018 17:39:32 +0000 Subject: [PATCH] Removed unused code --- .../main/java/eu/faircode/email/AdapterMessage.java | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index df098b51..8dcc761b 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -1249,24 +1249,17 @@ public class AdapterMessage extends PagedListAdapter() { + new SimpleTask() { @Override - protected Boolean onLoad(Context context, Bundle args) { + protected Void onLoad(Context context, Bundle args) { long id = args.getLong("id"); long target = args.getLong("target"); - boolean close; - DB db = DB.getInstance(context); try { db.beginTransaction(); EntityMessage message = db.message().getMessage(id); - EntityFolder folder = db.folder().getFolder(message.folder); - - close = EntityFolder.ARCHIVE.equals(folder.type); - if (!close) - db.message().setMessageUiHide(message.id, true); EntityOperation.queue(db, message, EntityOperation.MOVE, target); @@ -1277,7 +1270,7 @@ public class AdapterMessage extends PagedListAdapter