From 36fdfb3de6c21e4cf08c8b10096430c97873b6e9 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Fri, 28 Sep 2018 17:14:37 +0200 Subject: [PATCH] fix notifications loading (again) (#845) * fix notifications loading (again) * Revert "fix notifications loading (again)" This reverts commit 226710fabf5175d4f6a2103c6896bcfe37e3230e. * fix notification loading (this time for really real) --- .../com/keylesspalace/tusky/fragment/NotificationsFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8d06f66e..7644e048 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java @@ -697,7 +697,7 @@ public class NotificationsFragment extends SFragment implements adapter.removeItemAndNotify(this.notifications.size()); } - if (adapter.getItemCount() > 1) { + if (adapter.getItemCount() > 0) { addItems(notifications, fromId); } else { /* If this is the first fetch, also save the id from the "previous" link and