diff --git a/app/src/main/java/com/keylesspalace/tusky/adapter/AccountAdapter.java b/app/src/main/java/com/keylesspalace/tusky/adapter/AccountAdapter.java index a46f5075..b47b6777 100644 --- a/app/src/main/java/com/keylesspalace/tusky/adapter/AccountAdapter.java +++ b/app/src/main/java/com/keylesspalace/tusky/adapter/AccountAdapter.java @@ -80,7 +80,7 @@ public abstract class AccountAdapter extends RecyclerView.Adapter { } int end = accountList.size(); Account last = accountList.get(end - 1); - if (last != null && !findAccount(accountList, last.id)) { + if (last != null && !findAccount(newAccounts, last.id)) { accountList.addAll(newAccounts); notifyItemRangeInserted(end, newAccounts.size()); } diff --git a/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java b/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java index 10fe9f0a..fb0ed466 100644 --- a/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java +++ b/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java @@ -214,7 +214,7 @@ public class NotificationsAdapter extends RecyclerView.Adapter implements Adapte } int end = notifications.size(); Notification last = notifications.get(end - 1); - if (last != null && !findNotification(notifications, last.id)) { + if (last != null && !findNotification(newNotifications, last.id)) { notifications.addAll(newNotifications); notifyItemRangeInserted(end, newNotifications.size()); } diff --git a/app/src/main/java/com/keylesspalace/tusky/adapter/TimelineAdapter.java b/app/src/main/java/com/keylesspalace/tusky/adapter/TimelineAdapter.java index aaabf0b6..84105f7b 100644 --- a/app/src/main/java/com/keylesspalace/tusky/adapter/TimelineAdapter.java +++ b/app/src/main/java/com/keylesspalace/tusky/adapter/TimelineAdapter.java @@ -146,7 +146,7 @@ public class TimelineAdapter extends RecyclerView.Adapter implements AdapterItem } int end = statuses.size(); Status last = statuses.get(end - 1); - if (last != null && !findStatus(statuses, last.id)) { + if (last != null && !findStatus(newStatuses, last.id)) { statuses.addAll(newStatuses); notifyItemRangeInserted(end, newStatuses.size()); }