에러 로그
더보기
java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 16(offset:16).state:34 androidx.recyclerview.widget.RecyclerView{3c041c7 VFED.V... ........ 0,0-1080,1450 #7f080058 app:id/common_list_recycler_view}
재현 방법
- List를 refresh하고 scroll 한다.
해결 방법
- Refresh 시점에 Adapter의 data list를 초기화할 때 list.clear()가 아닌 객체를 새로 만들어 준다.
mDataset = new ArrayList<>();