From e35f543e71f4ac51bf739470d24dc34da19ba966 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 7 Jun 2024 22:15:05 +0200 Subject: [PATCH] Body download lifecycle --- app/src/main/java/eu/faircode/email/AdapterMessage.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index dc24357603..411fa66a42 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -546,6 +546,7 @@ public class AdapterMessage extends RecyclerView.Adapter() { + eowner.start(); + db.operation().liveOperations(message.id, EntityOperation.BODY).observe(eowner, new Observer() { @Override public void onChanged(TupleMessageOperation operation) { grpDownloading.setVisibility(operation == null || operation.id == null ? View.GONE : View.VISIBLE); @@ -9180,6 +9184,7 @@ public class AdapterMessage extends RecyclerView.Adapter