Small fix

This commit is contained in:
M66B 2019-04-11 12:50:09 +02:00
parent bfbed2eb37
commit c1f97a4c6e
1 changed files with 2 additions and 4 deletions

View File

@ -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
}
}