johannilsson/android-pulltorefresh — Issue #48: scrollfix_for_short_list : freeze when the list contains many items
Author: ToYonos
Created: 2012-02-22 14:13:28+00:00
State: open

Hi,

I made some tests on my app (which is already using with success the original pull-to-refresh solution) and it's catastrophic when the list is a little longer (> 60 items).
It freezed the app when i dynamically changed the list content (due to the DataSetObserver that made undoubtedly the refresh slower).

With more than 60 items, this code snippet execution takes like forever :
```
adapter.clear();
for (Item i : items)
{
adapter.add(i);
}
adapter.notifyDataSetChanged();
```