fix link header handling in AccountActivityFragment

- fixes douplication of users after undoing unblocks/unmutes
- removes unnecessary loading when scrolled to end of list
This commit is contained in:
Conny Duck 2018-03-02 20:56:09 +01:00
commit fec1dbc470
2 changed files with 29 additions and 42 deletions

View file

@ -46,16 +46,14 @@ public abstract class AccountAdapter extends RecyclerView.Adapter {
}
public void update(@Nullable List<Account> newAccounts, @Nullable String fromId,
@Nullable String uptoId) {
@Nullable String uptoId) {
if (newAccounts == null || newAccounts.isEmpty()) {
return;
}
if (fromId != null) {
bottomId = fromId;
}
if (uptoId != null) {
topId = uptoId;
}
bottomId = fromId;
topId = uptoId;
if (accountList.isEmpty()) {
accountList = ListUtils.removeDuplicates(newAccounts);
} else {