mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
Some fixes
This commit is contained in:
parent
740ce71ac9
commit
7763d2f5f1
2 changed files with 5 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue