Skip to content

Instantly share code, notes, and snippets.

@josh-burton
Created September 7, 2017 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josh-burton/122871d59d04646e0b2734d2aa6b59de to your computer and use it in GitHub Desktop.
Save josh-burton/122871d59d04646e0b2734d2aa6b59de to your computer and use it in GitHub Desktop.
MapMe - add items
// add new data and tell the adapter about it
items.addAll(myData)
adapter.notifyDataSetChanged()
// or with DiffUtil
val diff = DiffUtil.calculateDiff(myDiffCallback)
diff.dispatchUpdatesTo(adapter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment