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

The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChan #35

Open
ehaahe opened this issue Apr 5, 2017 · 1 comment

Comments

@ehaahe
Copy link

ehaahe commented Apr 5, 2017

Caused by: java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged() when its content changes. [in ListView(2131492870, class android.widget.ListView) with Adapter(class com.by.czw.adapter.LotteryDetailNormalAdapter)]
2 at android.widget.ListView.layoutChildren(ListView.java:1582)
3 at android.widget.AbsListView.onLayout(AbsListView.java:2190)
4 at android.view.View.layout(View.java:16707)
5 at android.view.ViewGroup.layout(ViewGroup.java:5476)
6 at com.aspsine.swipetoloadlayout.SwipeToLoadLayout.layoutChildren(SwipeToLoadLayout.java:1083)
7 at com.aspsine.swipetoloadlayout.SwipeToLoadLayout.fixCurrentStatusLayout(SwipeToLoadLayout.java:1146)
8 at com.aspsine.swipetoloadlayout.SwipeToLoadLayout.autoScrollFinished(SwipeToLoadLayout.java:1353)
9 at com.aspsine.swipetoloadlayout.SwipeToLoadLayout.access$1800(SwipeToLoadLayout.java:19)
10 at com.aspsine.swipetoloadlayout.SwipeToLoadLayout$AutoScroller.finish(SwipeToLoadLayout.java:1562)
11 at com.aspsine.swipetoloadlayout.SwipeToLoadLayout$AutoScroller.run(SwipeToLoadLayout.java:1545)
12 at android.os.Handler.handleCallback(Handler.java:739)
13 at android.os.Handler.dispatchMessage(Handler.java:95)
14 at android.os.Looper.loop(Looper.java:179)
15 at android.app.ActivityThread.main(ActivityThread.java:5672)
16 at java.lang.reflect.Method.invoke(Native Method)
17 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
18 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:676)

@abhimuktheeswarar
Copy link

I also got the same error, any solution?

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

2 participants