Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun updateData(list :MutableList<MarketOffer>){
- this.itemsListAdapter = list
- this.notifyDataSetChanged()
- }
- fun setList(list: MutableList<MarketOffer>) {
- this.itemsListAdapter = list // points to the same instance of MutableList
- }
- fun setList(list: MutableList<MarketOffer>) {
- this.itemsListAdapter = list.toMutableList() // create a new instance of MutableList
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement