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:
parent
a81f691689
commit
fec1dbc470
2 changed files with 29 additions and 42 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue