Crash when calling MyPagerAdapter.notifyDataSetChanged()
TracyZhangLei opened this issue · comments
Tracy commented
The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 6, found: 2
Tracy commented
I found that we can't call adapter.notifyDataSetChanged() when using LoopViewPager, we can use setAdapter(new Adapter()) to avoid this error.
Po commented
I also have the same problem
IceLin commented
I also have the same problem.
OrzOrz commented
what's the reason ?
achilles commented
try to use LoopPagerAdapterWrapper's notifyDataSetChanged.Actually,LoopViewPager use LoopPagerAdapterWrapper as adapter