Skip to content
Snippets Groups Projects
Commit 931a583d authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Do not add/remove lists twice

parent 267738e4
No related branches found
No related tags found
No related merge requests found
......@@ -51,14 +51,11 @@ public class AudioPagerAdapter extends PagerAdapter {
@Override
public Object instantiateItem(ViewGroup container, int position) {
View page = mLists.get(position);
container.addView(page);
return page;
return mLists.get(position);
}
@Override
public void destroyItem(ViewGroup container, int position, Object object) {
container.removeView((View) object);
mLists.remove(position);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment