notification refresh

This commit is contained in:
stom79 2019-02-12 17:29:18 +01:00
parent 2380abb411
commit 9c3e436cdc
1 changed files with 2 additions and 1 deletions

View File

@ -225,8 +225,9 @@ public class DisplayAccountsFragment extends Fragment implements OnRetrieveAccou
swiped = false;
}
if( accounts != null && accounts.size() > 0) {
int currentPosition = this.accounts.size();
this.accounts.addAll(accounts);
accountsListAdapter.notifyDataSetChanged();
accountsListAdapter.notifyItemRangeChanged(currentPosition,accounts.size());
}
swipeRefreshLayout.setRefreshing(false);
firstLoad = false;