From 21a7201f8a4b60a45cda53d4c1e1d56bb4aba7a3 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Tue, 14 Jan 2020 21:58:35 +0100 Subject: [PATCH] fix notification refresh (#1638) --- .../tusky/fragment/NotificationsFragment.java | 8 ++++++++ 1 file changed, 8 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 9db98bce3..d82a86a72 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java @@ -1024,6 +1024,14 @@ public class NotificationsFragment extends SFragment implements } } Log.e(TAG, "Fetch failure: " + exception.getMessage()); + + if (fetchEnd == FetchEnd.TOP) { + topLoading = false; + } + if (fetchEnd == FetchEnd.BOTTOM) { + bottomLoading = false; + } + progressBar.setVisibility(View.GONE); }