mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Small fix
This commit is contained in:
parent
bfbed2eb37
commit
c1f97a4c6e
1 changed files with 2 additions and 4 deletions
|
@ -2989,11 +2989,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
|
||||
void setSort(String sort) {
|
||||
if (!sort.equals(this.sort)) {
|
||||
boolean update = ("size".equals(this.sort) || "size".equals(sort));
|
||||
this.sort = sort;
|
||||
if (update)
|
||||
notifyDataSetChanged();
|
||||
// loadMessages will be called
|
||||
notifyDataSetChanged();
|
||||
// Needed to redraw item decorators / add/remove size
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue