mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 15:32:52 +00:00
Fixed scroll
This commit is contained in:
parent
b13c523db6
commit
205d587d7e
1 changed files with 3 additions and 0 deletions
|
@ -3011,6 +3011,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
else {
|
||||
boolean expanded = !properties.getValue("expanded", message.id);
|
||||
properties.setExpanded(message, expanded);
|
||||
// Needed to scroll to item after collapsing other items
|
||||
if (expanded)
|
||||
properties.scrollTo(getAdapterPosition(), 0);
|
||||
bindTo(message, expanded);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue