Some fixes

This commit is contained in:
Thomas 2023-03-21 13:02:52 +01:00
parent 740ce71ac9
commit 7763d2f5f1
2 changed files with 5 additions and 2 deletions

View file

@ -280,13 +280,13 @@ public class SearchResultTabActivity extends BaseBarActivity {
public void moveToAccount() {
tagEmpty = null;
accountEmpty = null;
binding.searchViewpager.setCurrentItem(1);
binding.searchViewpager.post(() -> binding.searchViewpager.setCurrentItem(1));
}
public void moveToMessage() {
tagEmpty = null;
accountEmpty = null;
binding.searchViewpager.setCurrentItem(2);
binding.searchViewpager.post(() -> binding.searchViewpager.setCurrentItem(2));
}
/**

View file

@ -2837,6 +2837,9 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
}
int to = Math.min(position + siblings, max_size - 1);
for (Status status : statusList.subList(from, to)) {
if (status == null) {
continue;
}
Status statusToDeal = status.reblog != null ? status.reblog : status;
if (statusToDeal.media_attachments != null && statusToDeal.media_attachments.size() > 0) {
attachments.addAll(statusToDeal.media_attachments);