From 6b0ae5be951b4790440d13af11f39741b386f622 Mon Sep 17 00:00:00 2001 From: Vavassor Date: Fri, 30 Jun 2017 19:49:10 -0400 Subject: [PATCH] Fixes the same typo in 3 places. --- .../java/com/keylesspalace/tusky/adapter/AccountAdapter.java | 2 +- .../com/keylesspalace/tusky/adapter/NotificationsAdapter.java | 2 +- .../java/com/keylesspalace/tusky/adapter/TimelineAdapter.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 a46f5075e..b47b67776 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 10fe9f0ab..fb0ed466a 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 aaabf0b68..84105f7b5 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()); }