From b1c2fcc1573b1ba0bac0f5a7e0fb17eaa66a6847 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Tue, 16 Jul 2019 19:51:44 +0200 Subject: [PATCH] update timestamps on pull-to-refresh even when no new statuses are fetched (#1393) --- .../com/keylesspalace/tusky/fragment/NotificationsFragment.java | 1 + .../java/com/keylesspalace/tusky/fragment/TimelineFragment.java | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java b/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java index e5fc61c3..cffd1d63 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java @@ -995,6 +995,7 @@ public class NotificationsFragment extends SFragment implements private void update(@Nullable List newNotifications, @Nullable String fromId) { if (ListUtils.isEmpty(newNotifications)) { + updateAdapter(); return; } if (fromId != null) { diff --git a/app/src/main/java/com/keylesspalace/tusky/fragment/TimelineFragment.java b/app/src/main/java/com/keylesspalace/tusky/fragment/TimelineFragment.java index 8a63d79d..2860f50d 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/TimelineFragment.java +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/TimelineFragment.java @@ -1116,6 +1116,7 @@ public class TimelineFragment extends SFragment implements private void updateStatuses(List> newStatuses, boolean fullFetch) { if (ListUtils.isEmpty(newStatuses)) { + updateAdapter(); return; }