|
|
|
@ -407,7 +407,7 @@ public class FragmentMastodonTimeline extends Fragment implements StatusAdapter.
|
|
|
|
|
binding.swipeContainer.setRefreshing(false);
|
|
|
|
|
binding.loadingNextElements.setVisibility(View.GONE);
|
|
|
|
|
flagLoading = false;
|
|
|
|
|
|
|
|
|
|
int currentPosition = mLayoutManager.findFirstVisibleItemPosition();
|
|
|
|
|
if (timelineStatuses != null && fetched_statuses != null && fetched_statuses.statuses != null && fetched_statuses.statuses.size() > 0) {
|
|
|
|
|
try {
|
|
|
|
|
if (statusToUpdate != null) {
|
|
|
|
@ -470,7 +470,10 @@ public class FragmentMastodonTimeline extends Fragment implements StatusAdapter.
|
|
|
|
|
update.onUpdate(0, timelineType, slug);
|
|
|
|
|
}
|
|
|
|
|
if (direction == DIRECTION.TOP && fetchingMissing) {
|
|
|
|
|
binding.recyclerView.scrollToPosition(getPosition(fetched_statuses.statuses.get(fetched_statuses.statuses.size() - 1)) + 1);
|
|
|
|
|
int newPosition = currentPosition + fetched_statuses.statuses.size() + 1;
|
|
|
|
|
if (newPosition < timelineStatuses.size()) {
|
|
|
|
|
binding.recyclerView.scrollToPosition(newPosition);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (!fetchingMissing) {
|
|
|
|
|
if (fetched_statuses.pagination.max_id == null) {
|
|
|
|
|