pull/154/head
M66B 7 years ago
parent bfbed2eb37
commit c1f97a4c6e

@ -2989,11 +2989,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
void setSort(String sort) { void setSort(String sort) {
if (!sort.equals(this.sort)) { if (!sort.equals(this.sort)) {
boolean update = ("size".equals(this.sort) || "size".equals(sort));
this.sort = sort; this.sort = sort;
if (update) notifyDataSetChanged();
notifyDataSetChanged(); // Needed to redraw item decorators / add/remove size
// loadMessages will be called
} }
} }

Loading…
Cancel
Save