onecoders / NetEase

NetEase Example
6 stars 6 forks source link

Adapter bug(called "notifyDataSetChanged" too often in short intervals.) #14

Open onecoders opened 10 years ago

onecoders commented 10 years ago

The content of the adapter has changed but ListView did not receive a notification.content adapter is not modified from a background thread

http://stackoverflow.com/questions/15500314/the-content-of-the-adapter-has-changed-but-listview-did-not-receive-a-notificati

onecoders commented 10 years ago

http://stackoverflow.com/questions/19077626/illegalstateexception-in-pulltorefreshlistviewinternallistviewsdk9

onecoders commented 10 years ago

Ways to solve http://justwyy.iteye.com/blog/1779722

onecoders commented 10 years ago

contentItems is a variable in AsyncTask Do not change the variable in adapter adapter.addAll(contentItems);