update timestamps on pull-to-refresh even when no new statuses are fetched (#1393)

This commit is contained in:
Konrad Pozniak 2019-07-16 19:51:44 +02:00 committed by GitHub
parent d932912616
commit b1c2fcc157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -995,6 +995,7 @@ public class NotificationsFragment extends SFragment implements
private void update(@Nullable List<Notification> newNotifications, @Nullable String fromId) {
if (ListUtils.isEmpty(newNotifications)) {
updateAdapter();
return;
}
if (fromId != null) {

View File

@ -1116,6 +1116,7 @@ public class TimelineFragment extends SFragment implements
private void updateStatuses(List<Either<Placeholder, Status>> newStatuses, boolean fullFetch) {
if (ListUtils.isEmpty(newStatuses)) {
updateAdapter();
return;
}