mirror of https://github.com/M66B/FairEmail.git
Small fix
This commit is contained in:
parent
bfbed2eb37
commit
c1f97a4c6e
|
@ -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
|
||||
// Needed to redraw item decorators / add/remove size
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue