(ui) fix bug that when we comeback from the Composer , there is no update of the view
This commit is contained in:
parent
0ce5c49655
commit
42d94633cf
2 changed files with 16 additions and 1 deletions
|
@ -59,6 +59,11 @@ public class SavedTootAdapter extends RecyclerView.Adapter {
|
|||
return list.size();
|
||||
}
|
||||
|
||||
public void setItems(List<TootEntity> newToot) {
|
||||
list = new ArrayList<>();
|
||||
list.addAll(newToot);
|
||||
}
|
||||
|
||||
public void addItems(List<TootEntity> newToot) {
|
||||
int end = list.size();
|
||||
list.addAll(newToot);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue