0

I had to implement iOS like pull to refresh list in my Android app. I decided to go for this library. It's pull to refresh performance is awesome. But I'm facing one random exception which leads to app crash. It happens sometime that IllegalStateException is thrown pointing to this line in PullToRefreshListView.java in InternalListView class code.

return super.dispatchTouchEvent(ev); 

I'm unable to understand this issue. Can any body guide me to solve this issue please.

Ammar
  • 1,811
  • 5
  • 26
  • 60

2 Answers2

0

Please check, you might be calling notifyDataSetChanged() too often in short intervals. You can go through this link.Chrisbane PullToRefreshListView IllegalStateException

Community
  • 1
  • 1
0

Actually I was missing notifyDataSetChanged() in one of the callbacks. Adding resolved the issue. Thanks everyone who spared time to reply to this question.

Ammar
  • 1,811
  • 5
  • 26
  • 60