Skip to content

Commit

Permalink
addAll 함수의 인자를 더 추상화
Browse files Browse the repository at this point in the history
  • Loading branch information
JSpiner committed Feb 16, 2019
1 parent 027f62b commit 6f317db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/jspiner/ask/ui/base/BaseAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ abstract class BaseAdapter<D> : RecyclerView.Adapter<BaseViewHolder<ViewDataBind
return dataList.size
}

fun addAll(itemList: ArrayList<D>) {
fun addAll(itemList: List<D>) {
val prevSize = dataList.size
dataList.addAll(itemList)
notifyItemRangeInserted(prevSize, itemList.size)
Expand Down

0 comments on commit 6f317db

Please sign in to comment.