Simplification/fix

This commit is contained in:
M66B
2020-03-21 15:27:28 +01:00
parent 5fdc673292
commit 8ea6a184b2
2 changed files with 3 additions and 15 deletions

View File

@@ -3008,7 +3008,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
boolean expanded = !properties.getValue("expanded", message.id);
properties.setExpanded(message, expanded);
bindTo(message, getAdapterPosition());
properties.scrollTo(getAdapterPosition());
properties.scrollTo(getAdapterPosition(), 0);
}
}
@@ -4722,7 +4722,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
public void onCurrentListChanged(@Nullable PagedList<TupleMessageEx> previousList, @Nullable PagedList<TupleMessageEx> currentList) {
if (gotoTop) {
gotoTop = false;
properties.scrollTo(0);
properties.scrollTo(0, 0);
}
}
});
@@ -4761,7 +4761,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
}
void gotoTop() {
properties.scrollTo(0);
properties.scrollTo(0, 0);
this.gotoTop = true;
}
@@ -4978,8 +4978,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
List<EntityAttachment> getAttachments(long id);
void scrollTo(int pos);
void scrollTo(int pos, int y);
void move(long id, String type);