Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. fun updateData(list :MutableList<MarketOffer>){
  2. this.itemsListAdapter = list
  3. this.notifyDataSetChanged()
  4. }
  5.  
  6. fun setList(list: MutableList<MarketOffer>) {
  7. this.itemsListAdapter = list // points to the same instance of MutableList
  8. }
  9.  
  10. fun setList(list: MutableList<MarketOffer>) {
  11. this.itemsListAdapter = list.toMutableList() // create a new instance of MutableList
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement