Skip to content
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

Open
TracyZhangLei opened this issue Oct 15, 2015 · 6 comments
Open

Crash when calling MyPagerAdapter.notifyDataSetChanged() #26

TracyZhangLei opened this issue Oct 15, 2015 · 6 comments

Comments

@TracyZhangLei
Copy link

The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 6, found: 2

@TracyZhangLei
Copy link
Author

I found that we can't call adapter.notifyDataSetChanged() when using LoopViewPager, we can use setAdapter(new Adapter()) to avoid this error.

@panda912
Copy link

panda912 commented Jul 8, 2016

I also have the same problem

@TracyZhangLei
Copy link
Author

@panda912 setAdapter(new Adapter()) 就可以了,调用notifyDataSetChanged实际不起作用

@CeleryIce
Copy link

I also have the same problem.

@OtzOrz
Copy link

OtzOrz commented Dec 21, 2016

what's the reason ?

@achillh
Copy link

achillh commented Jan 23, 2017

try to use LoopPagerAdapterWrapper's notifyDataSetChanged.Actually,LoopViewPager use LoopPagerAdapterWrapper as adapter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants