Browse Source

fix notifications loading (again)

pull/845/head
Conny Duck 8 years ago
parent
commit
226710fabf
  1. 10
      app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java

10
app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java

@ -718,15 +718,13 @@ public class NotificationsFragment extends SFragment implements
private void update(@Nullable List<Notification> newNotifications, @Nullable String fromId,
@Nullable String uptoId) {
bottomId = fromId;
topId = uptoId;
if (ListUtils.isEmpty(newNotifications)) {
return;
}
if (fromId != null) {
bottomId = fromId;
}
if (uptoId != null) {
topId = uptoId;
}
List<Either<Placeholder, Notification>> liftedNew =
liftNotificationList(newNotifications);
if (notifications.isEmpty()) {

Loading…
Cancel
Save