h6ah4i / android-advancedrecyclerview

RecyclerView extension library which provides advanced features. (ex. Google's Inbox app like swiping, Play Music app like drag and drop sorting)
https://advancedrecyclerview.h6ah4i.com/
Apache License 2.0
5.32k stars 862 forks source link

remove empty Adpter from composedAdpter error #461

Open alacoo opened 6 years ago

alacoo commented 6 years ago

i can't remove Adapter using composedAdapter.removeAdapter(tag); when adapter own tag is empty (have no items) it's throw this java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 at java.util.ArrayList.get(ArrayList.java:411) at com.h6ah4i.android.widget.advrecyclerview.composedadapter.AdaptersSet.getAdapter(AdaptersSet.java:106) my problem happen when i remove the first adapter , i think it's an animation issus