INNER CODE UNIT · Kotlin
notifyAdapterItemInserted
mikepenz/FastAdapter · fastadapter/src/main/java/com/mikepenz/fastadapter/FastAdapter.kt:707
open fun notifyAdapterItemInserted(position: Int) {
notifyAdapterItemRangeInserted(position, 1)
}
/**
* Wraps notifyItemRangeInserted
*
* @param position the global position
* @param itemCount the count of items inserted
*/
open fun notifyAdapterItemRangeInserted(position: Int, itemCount: Int) {
// handle our extensions
for (ext in extensionsCache.values) {
ext.notifyAdapterItemRangeInserted(position, itemCount)
}
cacheSizes()
notifyItemRangeInserted(position, itemCount)
}