From e3f76b07b2c46855a40ad48f5460431246961fe7 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 23 Sep 2018 04:28:13 +0000 Subject: [PATCH] Fixes, improvements --- .../java/eu/faircode/email/ActivityView.java | 12 ++++--- .../eu/faircode/email/AdapterMessage.java | 9 +++-- .../email/BoundaryCallbackMessages.java | 36 +++++++++++-------- .../email/DialogBuilderLifecycle.java | 2 ++ .../eu/faircode/email/FragmentMessages.java | 6 ++-- 5 files changed, 38 insertions(+), 27 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityView.java b/app/src/main/java/eu/faircode/email/ActivityView.java index 984c21ec39..3100b8779e 100644 --- a/app/src/main/java/eu/faircode/email/ActivityView.java +++ b/app/src/main/java/eu/faircode/email/ActivityView.java @@ -743,12 +743,14 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB try { db.beginTransaction(); - if (!message.content) - EntityOperation.queue(db, message, EntityOperation.BODY); + if (!EntityFolder.OUTBOX.equals(message.folderType)) { + if (!message.content) + EntityOperation.queue(db, message, EntityOperation.BODY); - if (!message.threaded) { - db.message().setMessageUiSeen(message.id, true); - EntityOperation.queue(db, message, EntityOperation.SEEN, true); + if (!message.threaded) { + db.message().setMessageUiSeen(message.id, true); + EntityOperation.queue(db, message, EntityOperation.SEEN, true); + } } db.setTransactionSuccessful(); diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 9265ca635f..fdf322c5fb 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -263,8 +263,10 @@ public class AdapterMessage extends PagedListAdapter