Fixes the same typo in 3 places.

main
Vavassor 7 years ago
parent f1359d1864
commit 3d85eef83a
  1. 2
      app/src/main/java/com/keylesspalace/tusky/adapter/AccountAdapter.java
  2. 2
      app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java
  3. 2
      app/src/main/java/com/keylesspalace/tusky/adapter/TimelineAdapter.java

@ -80,7 +80,7 @@ public abstract class AccountAdapter extends RecyclerView.Adapter {
} }
int end = accountList.size(); int end = accountList.size();
Account last = accountList.get(end - 1); Account last = accountList.get(end - 1);
if (last != null && !findAccount(accountList, last.id)) { if (last != null && !findAccount(newAccounts, last.id)) {
accountList.addAll(newAccounts); accountList.addAll(newAccounts);
notifyItemRangeInserted(end, newAccounts.size()); notifyItemRangeInserted(end, newAccounts.size());
} }

@ -214,7 +214,7 @@ public class NotificationsAdapter extends RecyclerView.Adapter implements Adapte
} }
int end = notifications.size(); int end = notifications.size();
Notification last = notifications.get(end - 1); Notification last = notifications.get(end - 1);
if (last != null && !findNotification(notifications, last.id)) { if (last != null && !findNotification(newNotifications, last.id)) {
notifications.addAll(newNotifications); notifications.addAll(newNotifications);
notifyItemRangeInserted(end, newNotifications.size()); notifyItemRangeInserted(end, newNotifications.size());
} }

@ -146,7 +146,7 @@ public class TimelineAdapter extends RecyclerView.Adapter implements AdapterItem
} }
int end = statuses.size(); int end = statuses.size();
Status last = statuses.get(end - 1); Status last = statuses.get(end - 1);
if (last != null && !findStatus(statuses, last.id)) { if (last != null && !findStatus(newStatuses, last.id)) {
statuses.addAll(newStatuses); statuses.addAll(newStatuses);
notifyItemRangeInserted(end, newStatuses.size()); notifyItemRangeInserted(end, newStatuses.size());
} }

Loading…
Cancel
Save