Fixed scroll to top edge case

This commit is contained in:
M66B 2020-05-05 17:03:20 +02:00
parent 3f1f8da05c
commit 270c6d3ded
1 changed files with 1 additions and 1 deletions

View File

@ -4985,7 +4985,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
this.differ.addPagedListListener(new AsyncPagedListDiffer.PagedListListener<TupleMessageEx>() {
@Override
public void onCurrentListChanged(@Nullable PagedList<TupleMessageEx> previousList, @Nullable PagedList<TupleMessageEx> currentList) {
if (gotoTop) {
if (gotoTop && previousList != null) {
gotoTop = false;
properties.scrollTo(0, 0);
}