-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when calling MyPagerAdapter.notifyDataSetChanged() #26
Comments
I found that we can't call adapter.notifyDataSetChanged() when using LoopViewPager, we can use setAdapter(new Adapter()) to avoid this error. |
I also have the same problem |
@panda912 setAdapter(new Adapter()) 就可以了,调用notifyDataSetChanged实际不起作用 |
I also have the same problem. |
what's the reason ? |
try to use LoopPagerAdapterWrapper's notifyDataSetChanged.Actually,LoopViewPager use LoopPagerAdapterWrapper as adapter |
The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 6, found: 2
The text was updated successfully, but these errors were encountered: