From 36c050de84d6ae674ec61ac466d0d7fde6fc383d Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 16 Apr 2020 19:00:54 +0200 Subject: [PATCH] Fixed scroll on connectivity change --- app/src/main/java/eu/faircode/email/AdapterMessage.java | 8 +++++++- 1 file changed, 7 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 b15cfb8498..3be666c37d 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -5048,7 +5048,13 @@ public class AdapterMessage extends RecyclerView.Adapter list = differ.getCurrentList(); + if (list != null) + for (int i = 0; i < list.size(); i++) { + TupleMessageEx message = list.get(i); + if (message != null && properties.getValue("expanded", message.id)) + notifyItemChanged(i); + } } }