Fixes the same typo in 3 places.
This commit is contained in:
parent
275cd51a6d
commit
6b0ae5be95
|
@ -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…
Reference in New Issue